aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-11-09 09:59:57 +0000
committermerakor <cem@ckyln.com>2021-11-09 09:59:57 +0000
commit3380d3391d77b459fb5e892095751f3303c70fec (patch)
treef65b602fd155e8d5c6bee637cc0490bf8b5fd595 /contrib
parent9a8743deb73d4025fee0c9fa0e901cdbb141df3d (diff)
downloadcpt-3380d3391d77b459fb5e892095751f3303c70fec.tar.gz
cpt-owns: fix shellcheck error
FossilOrigin-Name: d5627faf00fe2b32a342c76e2063928f01079a5c463a192646a1fda00ce975a0
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/cpt-owns2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cpt-owns b/contrib/cpt-owns
index 9bc7d77..1f362d7 100755
--- a/contrib/cpt-owns
+++ b/contrib/cpt-owns
@@ -40,7 +40,7 @@ case "$1" in
esac
# Strip 'CPT_ROOT' from the file path if passed and follow symlinks.
-file="${1#$CPT_ROOT}"
+file="${1#"$CPT_ROOT"}"
dirname=$(_readlinkf "$CPT_ROOT/${file%/*}")
file="$dirname/${file##*/}"