Script has { or } interpreted as literal characters instead of for command grouping or parameter expansion. To fix, add missing ; before } for command groups, or quote the expression if literal braces are intended.