aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/git-permalink.sh5
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
;;