iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mostly fixes for new error handling
[distro-setup]
/
demohost-mount
diff --git
a/demohost-mount
b/demohost-mount
index 706a516540d6d9f4b39946fb195229d4c08463b3..90d2b42497cedfa56e7420e8a74a235c49a7935e 100755
(executable)
--- a/
demohost-mount
+++ b/
demohost-mount
@@
-1,7
+1,5
@@
-#!/bin/bash -l
-set -eE -o pipefail
-trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
-
+#!/bin/bash
+if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi
[[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@"