Error during script

Hi,

what do you understand about that error?
thanks

while true; do
		local apkg=$(echo "$dpkgs" | awk -v rec=$di 'NR==rec {print $0}')
		[[ -z "$apkg" ]] && 
		{
			break
		} || {
			ipkg=("$top_dir/$tgt-src/bin/$tgt/packages/${apkg}"*"ipk")
			[[ -f "${ipkg[0]}" ]] &&
			{

the error is about that line ; ipkg=("$top_dir/$tgt-src/bin/$tgt/packages/${apkg}"*"ipk")

and the error is ; build.sh: 225: Syntax error: "(" unexpected (expecting "}")

Remove the ():

ipkg="$top_dir/$tgt-src/bin/$tgt/packages/${apkg}"*"ipk"

P.S. I would use if then, the && || can lead to unexpected results

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.