AOSC-Archive / autobuild3

AOSC OS package maintenance toolkit (version 3)
https://aosc.io
GNU General Public License v2.0
24 stars 17 forks source link

base.sh: abrequire Grammar Error #38

Closed Icenowy closed 9 years ago

Icenowy commented 9 years ago
/usr/lib/autobuild3/lib/base.sh: line 55: syntax error in conditional expression: unexpected token `|'
/usr/lib/autobuild3/lib/base.sh: line 55: syntax error near `|"'
/usr/lib/autobuild3/lib/base.sh: line 55: `     [[ $ABLIBS == *|"$i"|* ]] || abloadlib "$i" ||'

I replaced line 55&56 with the old version, and it works.

echo $ABLIBS | grep -q "|$i|" || abloadlib $i || abicu "Library ‘$i’ failed to load; returned value: $?."{\ Expect\ failures.,}