From de0a5009666ca352b7d4f314a3c0f897a05cf0e5 Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 13 May 2020 22:53:29 +0000 Subject: kiss: use set on find for POSIX compliance, thanks @illiliti FossilOrigin-Name: 0127cec2199ab8482a676e8c8cde6732a07fd4d1ab82e0259a73589d9f488d81 --- kiss | 7 +++++-- 1 file 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 -- cgit v1.2.3