diff options
author | Erich Eckner <git@eckner.net> | 2017-07-29 16:23:51 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-29 16:23:51 +0200 |
commit | 352dd1c0b56a223271aef33c9a90873d4416ba51 (patch) | |
tree | 00ec5d87e6938a594f02e30720709edfd8521182 | |
parent | ef197a8587b7c6303f5c53f8ab8ab7f51ba6cfe5 (diff) | |
download | shutdownasap-352dd1c0b56a223271aef33c9a90873d4416ba51.tar.xz |
shutdownasap: "set -e" new
-rwxr-xr-x | shutdownasap.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shutdownasap.in b/shutdownasap.in index aef43c4..6184367 100755 --- a/shutdownasap.in +++ b/shutdownasap.in @@ -2,6 +2,8 @@ # shutdownasap version #VERSION# +set -e + . #ETCDIR#/shutdownasap.conf [ -r "${pidFile}" ] && ps aux | grep -q "^\S\+\s\+$(cat "${pidFile}") " && exit |