mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
Correct syntax error, remove the unescaped newline between "||" and the
command it is intended to test. pdksh and bash caught this syntax error, sh(1) did not behave as intended. PR: 40386
This commit is contained in:
parent
b02aac465d
commit
c4232ceae7
1 changed files with 2 additions and 4 deletions
|
|
@ -76,16 +76,14 @@ if [ X"$1" = "X-presort" ]; then
|
|||
|
||||
$code $bigrams > $filelist || exit 1
|
||||
locate -d $filelist / | $bigram | $sort -nr | head -128 |
|
||||
awk '{if (/^[ ]*[0-9]+[ ]+..$/) {printf("%s",$2)} else {exit 1}}' > $bigrams
|
||||
|| exit 1
|
||||
awk '{if (/^[ ]*[0-9]+[ ]+..$/) {printf("%s",$2)} else {exit 1}}' > $bigrams || exit 1
|
||||
locate -d $filelist / | $code $bigrams || exit 1
|
||||
exit
|
||||
|
||||
else
|
||||
if $sortcmd $sortopt > $filelist; then
|
||||
$bigram < $filelist | $sort -nr |
|
||||
awk '{if (/^[ ]*[0-9]+[ ]+..$/) {printf("%s",$2)} else {exit 1}}' > $bigrams
|
||||
|| exit 1
|
||||
awk '{if (/^[ ]*[0-9]+[ ]+..$/) {printf("%s",$2)} else {exit 1}}' > $bigrams || exit 1
|
||||
$code $bigrams < $filelist || exit 1
|
||||
else
|
||||
echo "`basename $0`: cannot build locate database" >&2
|
||||
|
|
|
|||
Loading…
Reference in a new issue