summaryrefslogtreecommitdiffstats
path: root/.graveyard/lib/libkrebs.sh
blob: d423a0539dc396a8a6c34114d67d0c4f6f3ade0e (plain)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh
esudo() {
  if test "${esudo-true}" = true -a `id -u` != 0; then
    echo "we're going sudo..." >&2
    export esudo=false
    exec sudo "$0" "$@"
    exit 23 # go to hell
  fi
}