about summary refs log tree commit diff
path: root/shutdown
diff options
context:
space:
mode:
authorMatthew Martin <phy1729@gmail.com>2017-07-25 20:46:07 -0500
committerLeаh Neukirchen <chneukirchen@gmail.com>2017-07-26 13:36:59 +0200
commit00c10ef0c99859c583abc97974616eb278d3f24e (patch)
tree699ff6a2b966f081751534e43c5e88d7931d2468 /shutdown
parentbd8beaded9f5545f190c8b1570446a6365405408 (diff)
downloadrunit-void-00c10ef0c99859c583abc97974616eb278d3f24e.tar.gz
runit-void-00c10ef0c99859c583abc97974616eb278d3f24e.tar.xz
runit-void-00c10ef0c99859c583abc97974616eb278d3f24e.zip
shutdown: Quote command substitution
Diffstat (limited to 'shutdown')
-rwxr-xr-xshutdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/shutdown b/shutdown
index 7708479..9b6bba4 100755
--- a/shutdown
+++ b/shutdown
@@ -37,7 +37,7 @@ time=$1; shift
 message="${*:-system is going down}"
 
 if [ "$action" = "cancel" ]; then
-  kill $(cat /run/runit/shutdown.pid)
+  kill "$(cat /run/runit/shutdown.pid)"
   if [ -e /etc/nologin ] && ! [ -s /etc/nologin ]; then
     rm /etc/nologin
   fi