diff options
author | EuAndreh <eu@euandre.org> | 2021-06-12 18:50:15 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-12 18:50:15 -0300 |
commit | 504caf1abcbc93d0f1ac19496173ef04f94f49e6 (patch) | |
tree | a57775565477e12e6907b33e08ceeb0d8fd60185 | |
parent | TODOs.md: Mark #task-7695d33d-e96e-d313-b74b-860addde01c3 as DONE (diff) | |
download | git-permalink-504caf1abcbc93d0f1ac19496173ef04f94f49e6.tar.gz git-permalink-504caf1abcbc93d0f1ac19496173ef04f94f49e6.tar.xz |
src/git-permalink.sh: Fix ShellCheck errors
-rwxr-xr-x | src/git-permalink.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/git-permalink.sh b/src/git-permalink.sh index 12f9fc8..f664b9e 100755 --- a/src/git-permalink.sh +++ b/src/git-permalink.sh @@ -34,6 +34,7 @@ if [ -z "$FILE" ]; then fi PRINTONLY=false +# shellcheck disable=2068 for flag in $@; do case "$flag" in -h|--help) @@ -96,8 +97,10 @@ github() { guess_permalink() { if [ -n "$OVERRIDE_CF" ]; then + # shellcheck disable=2059 printf "$OVERRIDE_CF\n" "$COMMIT" "$FILE" elif [ -n "$OVERRIDE_FC" ]; then + # shellcheck disable=2059 printf "$OVERRIDE_FC\n" "$FILE" "$COMMIT" else case "$ORIGIN" in @@ -117,7 +120,7 @@ guess_permalink() { github ;; *) - printf "Unsupported origin: %s.\n\n" $ORIGIN >&2 + printf "Unsupported origin: %s.\n\n" "$ORIGIN" >&2 printf 'Add an template override to use git-permalink (see "man git-permalink.1" for instructions).\n' >&2 exit 1 ;; |