Skip to content

Commit fbfea1d

Browse files
committed
[fix] : Fixed SC2206 SC2207
1 parent d0d34f1 commit fbfea1d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tools/msg.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ check_color(){
120120
ARGUMENT=("${@}")
121121
OPTS="a:c:l:no:p:r:s:t:xh"
122122
OPTL="appname:,chr:,label:,nocolor,echo-option:,output:,label-color:,label-space:,text-color:,bash-debug,help,nolabel,noappname,noadjust"
123-
if ! OPT=($(getopt -o ${OPTS} -l ${OPTL} -- "${ARGUMENT[@]}")); then
123+
if ! OPT="$(getopt -o ${OPTS} -l ${OPTL} -- "${ARGUMENT[@]}")"; then
124124
exit 1
125125
fi
126126

@@ -147,7 +147,8 @@ while true; do
147147
shift 1
148148
;;
149149
-o | --echo-option)
150-
echo_opts+=(${2})
150+
#echo_opts+=(${2})
151+
IFS=" " read -r -a echo_opts <<< "${2}"
151152
shift 2
152153
;;
153154
-p | --output)

0 commit comments

Comments
 (0)