kmerge.sh: Fix line wrapping typo from 9ceebbf
authorW. Trevor King <wking@tremily.us>
Fri, 1 Mar 2013 05:57:39 +0000 (00:57 -0500)
committerBrian Dolbec <dolsen@gentoo.org>
Wed, 29 May 2013 03:41:24 +0000 (20:41 -0700)
In 9ceebbf (kmerge.sh: Make /var/tmp/${clst_kname}.config optional,
2013-02-09), I added a KERNCACHE check to a `[` test, wrapping the two
clauses in the test to avoid a very long line.  Unfortunately,
newlines do not appear to be legal in this position.  For example:

  $ if [ -n "a" -a
  > -n "b" ]; then echo "c"; fi
  bash: [: missing `]'
  bash: -n: command not found

This commit fixes the error by explicitly wrapping the line with a
backslash.

Reviewed-by: Matt Turner <mattst88@gmail.com>
targets/support/kmerge.sh

index 43d57a6a6dfaaa9c870eee7bec70aa48828bd6c7..f5e1aa886cbd3d67b1e57f83561639005ef432f7 100755 (executable)
@@ -180,7 +180,7 @@ then
 fi
 
 CONFIG_MATCH=0
-if [ -n "${clst_KERNCACHE}" -a
+if [ -n "${clst_KERNCACHE}" -a \
      -e /tmp/kerncache/${clst_kname}/${clst_kname}-${clst_version_stamp}.CONFIG ]
 then
        if [ ! -e /var/tmp/${clst_kname}.config ]