]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
nasm-wrapper: use += for appending string to a variable
authorKefu Chai <kchai@redhat.com>
Thu, 4 Mar 2021 09:17:15 +0000 (17:17 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 9 Mar 2021 11:13:22 +0000 (19:13 +0800)
less repeating, better readablity

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/nasm-wrapper

index 71eb8246a7b7b9796d35e5fcdf26861767b32555..e67da7cba1a47603b98268e457992fdaa354c885 100755 (executable)
@@ -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