]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
syntax-check: fix a quoted_test_operand violation.
authorGary V. Vaughan <gary@gnu.org>
Sun, 27 Jan 2013 13:13:27 +0000 (20:13 +0700)
committerGary V. Vaughan <gary@gnu.org>
Sun, 27 Jan 2013 13:26:26 +0000 (20:26 +0700)
* gl/build-aux/bootstrap.in (func_insert_if_absent): Make sure
test operands are quoted correctly.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
bootstrap
gl/build-aux/bootstrap.in

index 44bc3281263038c150dd26d002274f4bc9d0b083..90f9ee7963007917c04be6be57f8712ad2afdeb7 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -4359,7 +4359,7 @@ func_insert_if_absent ()
       linesold=`func_gitignore_entries "$file" |wc -l`
       linesnew=`$bs_echo "$str" \
                 |func_gitignore_entries - "$file" |sort -u |wc -l`
-      test $linesold -eq $linesnew \
+      test "$linesold" -eq "$linesnew" \
         || sed "1i\\$nl$str$nl" "$file" \
         || func_permissions_error "$file"
     done
index d9c7c27206d31d5c864d6763df2aeb2760c8f0aa..9a8f358d6056886ea7a882ee705add686bbd8eeb 100755 (executable)
@@ -2169,7 +2169,7 @@ func_insert_if_absent ()
       linesold=`func_gitignore_entries "$file" |wc -l`
       linesnew=`$bs_echo "$str" \
                 |func_gitignore_entries - "$file" |sort -u |wc -l`
-      test $linesold -eq $linesnew \
+      test "$linesold" -eq "$linesnew" \
         || sed "1i\\$nl$str$nl" "$file" \
         || func_permissions_error "$file"
     done