summaryrefslogtreecommitdiffstats
path: root/ship/lib
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-12-17 19:52:38 +0100
committermakefu <github@syntax-fehler.de>2013-12-17 19:52:38 +0100
commit80225e662c571e03559199006d85e7e4c696fd64 (patch)
treeeb58338efb598d98fda771eda96d50d03fe31c84 /ship/lib
parentbb1386c0bb6631e5a3ffae71c0779b0600596d2e (diff)
re-add core/esudo as weaksauce version
Diffstat (limited to 'ship/lib')
-rw-r--r--ship/lib/core10
1 files changed, 5 insertions, 5 deletions
diff --git a/ship/lib/core b/ship/lib/core
index d6e01352..7e8ac1ef 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
}