OSDN Git Service
(root)
/
instantos
/
instantOS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9046a6
)
fix instantshutdown overlapping
author
paperbenni
<paperbenni@gmail.com>
Thu, 23 Apr 2020 09:15:45 +0000
(11:15 +0200)
committer
paperbenni
<paperbenni@gmail.com>
Thu, 23 Apr 2020 09:15:45 +0000
(11:15 +0200)
programs/instantshutdown
patch
|
blob
|
history
diff --git
a/programs/instantshutdown
b/programs/instantshutdown
index
1706c6b
..
f02f301
100755
(executable)
--- a/
programs/instantshutdown
+++ b/
programs/instantshutdown
@@
-4,6
+4,12
@@
## shut down pc and break instantwm restart loop ##
###################################################
+# multiple instances would overlap
+if pgrep instantmenu; then
+ echo "instantmenu already running"
+ exit
+fi
+
answer=$(echo "yes
no
logout