Skip to content

Commit 8609a50

Browse files
committed
[fix] : Use readarray to get channel list
1 parent 56f3ca2 commit 8609a50

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/channel.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ gen_channel_list() {
6464
channellist+=("${_dirname}")
6565
fi
6666
else
67-
channellist+=("$(echo ${_dirname} | sed 's/\.[^\.]*$//')")
67+
#channellist+=("$(echo ${_dirname} | sed 's/\.[^\.]*$//')")
68+
readarray -t -O "${#channellist[@]}" channellist < <(echo "${_dirname}" | sed 's/\.[^\.]*$//')
6869
fi
6970
elif [[ ! -d "${script_path}/channels/${_dirname}.add" ]] && [[ "${opt_only_add}" = false ]]; then
7071
if [[ "${opt_fullpath}" = true ]]; then

0 commit comments

Comments
 (0)