iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better error output
[automated-distro-installer]
/
chboot
diff --git
a/chboot
b/chboot
index 0e3b506ebc7cdabe40c0cb3bd8d90eec41a93e3c..64e499ff484176dfbeaf98479bf5d3d9ddbf4dee 100755
(executable)
--- 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
# 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" "$@"
[[ $EUID == 0 ]] || exec sudo "$BASH_SOURCE" "$@"