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]
/
faiserver-uninstall
diff --git
a/faiserver-uninstall
b/faiserver-uninstall
index 4a9976da0e19fe7943a990ddf69906588004cab1..fbf3bd850503db21e658b3865b868dc29111a1f9 100755
(executable)
--- a/
faiserver-uninstall
+++ b/
faiserver-uninstall
@@
-1,7
+1,7
@@
#!/bin/bash
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}" "$@"