From 98738cb206f2eecc3a2a78c974d12a33978c9998 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 4 Mar 2021 17:17:15 +0800 Subject: [PATCH] nasm-wrapper: use += for appending string to a variable less repeating, better readablity Signed-off-by: Kefu Chai --- src/nasm-wrapper | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nasm-wrapper b/src/nasm-wrapper index 71eb8246a7b7b..e67da7cba1a47 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 -- 2.39.5