OSDN Git Service

correct typo
authorpaperbenni <paperbenni@gmail.com>
Thu, 10 Dec 2020 22:17:01 +0000 (23:17 +0100)
committerpaperbenni <paperbenni@gmail.com>
Thu, 10 Dec 2020 22:17:01 +0000 (23:17 +0100)
programs/instantshutdown

index 68a6045..2c09f98 100755 (executable)
@@ -11,7 +11,7 @@ if [ "$(pgrep instantshutdown | wc -l)" -gt 2 ]; then
     exit
 fi
 
-if [ -z "$1" ]; then
+if [ -n "$1" ]; then
     answer="$1"
 else
     answer="$(echo 'cancel