Skip to content

Commit 2938c95

Browse files
committed
Fix shellcheck findings
1 parent 0ee80fa commit 2938c95

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bin/znaphodl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
2-
pushd "$(dirname -- "${BASH_SOURCE[0]}")/.." > /dev/null
2+
pushd "$(dirname -- "${BASH_SOURCE[0]}")/.." > /dev/null || exit 1
33
BASENAME="$(basename -- "${BASH_SOURCE[0]}")"
44

5+
# shellcheck disable=SC1090
56
. "libexec/${BASENAME}.bash"
67

7-
popd > /dev/null
8+
popd > /dev/null || exit 1
89
shopt -s extglob
910
__"${BASENAME//+([^a-z0-9_])/_}" "$@"

0 commit comments

Comments
 (0)