iankelling.org
/
git
/
bash-template
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cdb2a2
)
make shellcheck happy
author
Ian Kelling
<iank@fsf.org>
Sun, 11 Aug 2019 23:49:24 +0000
(19:49 -0400)
committer
Ian Kelling
<iank@fsf.org>
Sun, 11 Aug 2019 23:49:24 +0000
(19:49 -0400)
bash-template
patch
|
blob
|
history
diff --git
a/bash-template
b/bash-template
index b0d90fa21657bcdf13969f0eca5d5b1a46e217eb..eaf5c7df96ec26ddf505878e551b5397aecf5d65 100644
(file)
--- a/
bash-template
+++ b/
bash-template
@@
-13,7
+13,7
@@
trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
[[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@"
-readonly this_file="$(readlink -f -- "$
BASH_SOURCE")"; cd ${this_file%/*}
+readonly this_file="$(readlink -f -- "$
{BASH_SOURCE[0]}")"; cd "${this_file%/*}"
usage() {
cat <<EOF