aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/kiss-owns2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/kiss-owns b/contrib/kiss-owns
index c048c86..3339bb5 100755
--- a/contrib/kiss-owns
+++ b/contrib/kiss-owns
@@ -6,7 +6,7 @@ case "$1" in ''|--help|-h) printf '%s\n' "usage: kiss-owns <file>" ; exit 0 ; es
# Strip 'KISS_ROOT' from the file path if passed and
# follow symlinks.
file="${1#$KISS_ROOT}"
-dirname=$(kiss-readlink "$KISS_ROOT/{$file%/*}")
+dirname=$(kiss-readlink "$KISS_ROOT/${file%/*}")
file="$dirname/${file##*/}"
# Check if the file exists and exit if it is not.