From: Kefu Chai Date: Thu, 4 Mar 2021 09:17:15 +0000 (+0800) Subject: nasm-wrapper: use += for appending string to a variable X-Git-Tag: v17.1.0~2681^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=98738cb206f2eecc3a2a78c974d12a33978c9998;p=ceph.git nasm-wrapper: use += for appending string to a variable less repeating, better readablity Signed-off-by: Kefu Chai --- diff --git a/src/nasm-wrapper b/src/nasm-wrapper index 71eb8246a7b7..e67da7cba1a4 100755 --- a/src/nasm-wrapper +++ b/src/nasm-wrapper @@ -7,7 +7,7 @@ while [ -n "$*" ]; do case "$1" in -f ) shift - refine_nasm_options="$refine_nasm_options -f $1" + refine_nasm_options+=" -f $1" shift ;; -c | --param* | -m* | -pipe | -thread ) @@ -34,12 +34,12 @@ while [ -n "$*" ]; do ;; -I | -isystem ) shift - refine_nasm_options="$refine_nasm_options -i $1" + refine_nasm_options+=" -i $1" shift ;; * ) # Keep other options - refine_nasm_options="$refine_nasm_options $1" + refine_nasm_options+=" $1" shift ;; esac