X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=chboot;fp=chboot;h=64e499ff484176dfbeaf98479bf5d3d9ddbf4dee;hb=a8ec695d6a39792133a21e9eca70e69f9fab107b;hp=0e3b506ebc7cdabe40c0cb3bd8d90eec41a93e3c;hpb=d3d495af167adba91b190e8dcb95649c34fa04c7;p=automated-distro-installer diff --git a/chboot b/chboot index 0e3b506..64e499f 100755 --- a/chboot +++ b/chboot @@ -7,7 +7,7 @@ # DISTRO_NAME is based on the partition names in /boot. eg boot_debianjessie set -eE -o pipefail -trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR +trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR [[ $EUID == 0 ]] || exec sudo "$BASH_SOURCE" "$@"