summaryrefslogtreecommitdiffstats
path: root/ship/lib/core
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-12-17 17:53:31 +0100
committermakefu <github@syntax-fehler.de>2013-12-17 19:33:59 +0100
commitec1ab1b0d55a21b223485b27bbc6fa6610f1875a (patch)
treeaacaac03cf9a0d2c74b5bf8263c35f6cebd90a93 /ship/lib/core
parent7fcd4f495a09c60843fc51d13afb9bb1ed32950f (diff)
punani ui is in lib/punani again
Diffstat (limited to 'ship/lib/core')
-rw-r--r--ship/lib/core11
1 files changed, 5 insertions, 6 deletions
diff --git a/ship/lib/core b/ship/lib/core
index d6e01352..6ae87fa4 100644
--- a/ship/lib/core
+++ b/ship/lib/core
@@ -22,12 +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" "$@"
- exit 23 # go to hell
+ # weaksauce esudo, bail out if we are not root
+ if ! is_root; then
+ # for the records:
+ # exec sudo -E "$0" "$@"
+ die "You are not root enough to run this script" 2>&1
fi
}