OSDN Git Service

[fix] : Fixed SC2199
authorhayao <shun819.mail@gmail.com>
Sun, 27 Dec 2020 00:18:45 +0000 (09:18 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 27 Dec 2020 00:18:45 +0000 (09:18 +0900)
alterlinux-gtk-bookmarks/alterlinux-gtk-bookmarks
alterlinux-plasma-bookmarks/alterlinux-plasma-bookmarks

index 0d51ff0..942a49d 100755 (executable)
@@ -137,7 +137,7 @@ mode="${1}"
 case "${1}" in
     add) 
         shift 1
-        if [[ -z "${@}" ]]; then
+        if [[ -z "${*}" ]]; then
             _msg_error "Please specify a directory."
             exit 1
         else
index 10e6c78..0c2fc1e 100755 (executable)
@@ -133,7 +133,7 @@ mode="${1}"
 case "${1}" in
     add) 
         shift 1
-        if [[ -z "${@}" ]]; then
+        if [[ -z "${*}" ]]; then
             _msg_error "Please specify a directory."
             exit 1
         else