diff options
author | makefu <root@pigstarter.de> | 2013-12-17 19:53:55 +0100 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-12-17 19:53:55 +0100 |
commit | 2c6d1d806a319d831270e384a1ad23dcd9c399cb (patch) | |
tree | 931d08e6d591196937a1c318f344c51ce18719d7 /ship/lib/core | |
parent | fcc1e1a8f71b5444eac3bd2370b792da01c4c872 (diff) | |
parent | 80225e662c571e03559199006d85e7e4c696fd64 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'ship/lib/core')
-rw-r--r-- | ship/lib/core | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ship/lib/core b/ship/lib/core index 9a8f2265..6252481f 100644 --- a/ship/lib/core +++ b/ship/lib/core @@ -22,11 +22,11 @@ defer(){ } esudo(){ - # becomes root with sudo powers - # unless nosudo env is set - if test "${nosudo-false}" != true && ! is_root; then - echo "we're going sudo..." >&2 - exec sudo -E "$0" "$@" + # weaksauce esudo (expect sudo) + if ! is_root; then + # for the record: + # exec sudo -E "$0" "$@" + error "You are not root enough for this script" exit 23 # go to hell fi } |