aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-15 17:37:19 +0000
committermerakor <cem@ckyln.com>2020-05-15 17:37:19 +0000
commitfa1503e37b329602bd8679ba1989c8bc7580373b (patch)
tree3913b911798ba1434ff6dfb42d9843f918e28888
parent994b2432c5415ab8d3df1c6414b2be57c272d62e (diff)
downloadcpt-fa1503e37b329602bd8679ba1989c8bc7580373b.tar.gz
kiss: fix tarball extraction where there are files with spaces
FossilOrigin-Name: 92e2eb771a2e8bcb3d54b9dd5e53d3a85259658ac0ad5124b62348a8037984a4
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index 8e7202c..39d1069 100755
--- a/kiss
+++ b/kiss
@@ -353,8 +353,8 @@ pkg_extract() {
#
# Word splitting is intentional here.
# shellcheck disable=2046
- set -- $(find . \( ! -name . -prune \) ! -name "$dir")
- mv -f "$@" ..
+ find . \( ! -name . -prune \) ! -name "$dir" \
+ -exec mv -f {} .. \;
# If a file/directory with the same name as the directory
# exists, append a '.kissbak' to it and move it to the