OSDN Git Service
(root)
/
alterlinux
/
alterlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
56f3ca2
)
[fix] : Use readarray to get channel list
author
hayao
<hayao@fascode.net>
Fri, 6 Aug 2021 16:23:33 +0000
(
01:23
+0900)
committer
hayao
<hayao@fascode.net>
Fri, 6 Aug 2021 16:23:33 +0000
(
01:23
+0900)
tools/channel.sh
patch
|
blob
|
history
diff --git
a/tools/channel.sh
b/tools/channel.sh
index
b46ddd7
..
a7c5893
100755
(executable)
--- a/
tools/channel.sh
+++ b/
tools/channel.sh
@@
-64,7
+64,8
@@
gen_channel_list() {
channellist+=("${_dirname}")
fi
else
- channellist+=("$(echo ${_dirname} | sed 's/\.[^\.]*$//')")
+ #channellist+=("$(echo ${_dirname} | sed 's/\.[^\.]*$//')")
+ readarray -t -O "${#channellist[@]}" channellist < <(echo "${_dirname}" | sed 's/\.[^\.]*$//')
fi
elif [[ ! -d "${script_path}/channels/${_dirname}.add" ]] && [[ "${opt_only_add}" = false ]]; then
if [[ "${opt_fullpath}" = true ]]; then