Skip to content

Commit 3b2b5d7

Browse files
committed
[fix] : Fixed message argumentt parser
1 parent 0c6f584 commit 3b2b5d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/msg.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ msg_error() {
5454

5555

5656
# Parse options
57-
ARGUMENT="${@}"
57+
ARGUMENT="${*}"
5858
_opt_short="a:c:l:no:r:s:xh"
5959
_opt_long="nocolor,bash-debug,help,nolabel,noappname,noadjust"
60-
OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- ${ARGUMENT})
60+
OPT=$(getopt -uo ${_opt_short} -l ${_opt_long} -- "${ARGUMENT}")
6161
[[ ${?} != 0 ]] && exit 1
6262

6363
eval set -- "${OPT}"

0 commit comments

Comments
 (0)