Skip to content

Commit 537c4f6

Browse files
mcepldmach
authored andcommitted
fix(template): make shellcheck happy
Also, GIT_OBS_HOOKS_DEBUG was meant to be initialized with a default value 0, if nothing is set, not expanded with substring from position 0, right?
1 parent efed568 commit 537c4f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git-obs-hook-template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313

1414
XDG_DATA_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}"
15-
GIT_OBS_HOOKS_DEBUG="${GIT_OBS_HOOKS_DEBUG:0}"
16-
HOOK_NAME="$(basename $0)"
17-
HOOK_DIR="$(readlink -f $0).d"
15+
GIT_OBS_HOOKS_DEBUG="${GIT_OBS_HOOKS_DEBUG:-0}"
16+
HOOK_NAME="$(basename "$0")"
17+
HOOK_DIR="$(readlink -f "$0").d"
1818
HOME_HOOK_DIR="${XDG_DATA_HOME}/git-obs-hooks/${HOOK_NAME}"
1919

2020

0 commit comments

Comments
 (0)