aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-09-27 00:24:15 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-09-27 00:24:15 -0400
commit3182341ac6507f2cfdb83aae9da11d15e17b5016 (patch)
treea45706a2a5c5adf9733307cdb40c5274657cca9d
parentbcab001045e51ce5fbcf5e684070dbeef24fd49e (diff)
downloadspexmgr-master.tar.gz
Use BASH_SOURCE in place of $0 in usage statementHEADmaster
-rwxr-xr-xbin/spexactivate2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/spexactivate b/bin/spexactivate
index e6d57f3..c6a4c60 100755
--- a/bin/spexactivate
+++ b/bin/spexactivate
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# vim: tabstop=4 shiftwidth=4 expandtab
usage() {
- echo "usage: source $(basename $0) {release}" >&2
+ echo "usage: source $(basename ${BASH_SOURCE[0]}) {release}" >&2
}
if [ "${BASH_SOURCE[0]}" -ef "$0" ]; then