summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xshutdown4
1 files changed, 1 insertions, 3 deletions
diff --git a/shutdown b/shutdown
index 399ade6..4a3147b 100755
--- a/shutdown
+++ b/shutdown
@@ -42,9 +42,7 @@ if [ "$action" = "cancel" ]; then
   exit
 fi
 
-if ! touch /run/runit/shutdown.pid 2>/dev/null; then
-  abort "Not enough permissions to execute ${0#*/}"
-fi
+touch /run/runit/shutdown.pid 2>/dev/null || abort "Not enough permissions to execute ${0#*/}"
 echo $$ >/run/runit/shutdown.pid
 
 case "$time" in