OSDN Git Service

fix shutdown menu
authorpaperbenni <paperbenni@gmail.com>
Wed, 22 Jul 2020 21:44:39 +0000 (23:44 +0200)
committerpaperbenni <paperbenni@gmail.com>
Wed, 22 Jul 2020 21:44:39 +0000 (23:44 +0200)
programs/instantshutdown

index bfbe379..dc655ea 100755 (executable)
@@ -5,7 +5,7 @@
 ###################################################
 
 # multiple instances would overlap
-if pgrep instantmenu; then
+if ! pgrep instantshutdown | wc -l | grep -q '1'; then
     echo "instantmenu already running"
     exit
 fi