aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss7
1 files changed, 5 insertions, 2 deletions
diff --git a/kiss b/kiss
index 258a1cf..b79a56a 100755
--- a/kiss
+++ b/kiss
@@ -348,8 +348,11 @@ pkg_extract() {
#
# Skip the file if it has the same name as the directory.
# We will deal with it later.
- find . \( ! -name . -prune \) \
- ! -name "$dir" -exec mv {} .. +
+ #
+ # Word splitting is intentional here.
+ # shellcheck disable=2046
+ set -- $(find . \( ! -name . -prune \) ! -name "$dir")
+ mv -f "$@" ..
# If a file/directory with the same name as the directory
# exists, append a '.kissbak' to it and move it to the