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)
commit8270d576d3436c662743c6a5b04cd2637265440b
tree2721d05df4633ecf1def2f9223b26af0ff2a813c
parent8e15e6e41a14ed7eb86f106aced5db6fa361a84f
kmerge.sh: Fix line wrapping typo from 9ceebbf

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