From 4375b8d4dc551af7005047860ce8e02bc8403ea3 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 25 May 2020 07:45:55 +0300 Subject: [PATCH] kiss: Quote unquoted 0 blocks --- kiss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index 946ad12..ca93221 100755 --- a/kiss +++ b/kiss @@ -952,9 +952,9 @@ pkg_install_files() { # a 1-9 loop with the second digit being the value of the field. for c in 14 22 31 44 52 61 74 82 91; do rwx=${rwx#?} case $rwx in - [rwx]*): $((o+=${c#?})) ;; - [st]*): $((o+=1)) $((b+=4 / (${c%?}/3))) ;; - [ST]*): $((b+=1)) ;; + [rwx]*): "$((o+=${c#?}))" ;; + [st]*): "$((o+=1))" "$((b+=4 / (${c%?}/3)))" ;; + [ST]*): "$((b+=1))" ;; esac [ "$((${c%?} % 3))" = 0 ] && oct=$oct$o o=0