tinifier
tinifier copied to clipboard
syntax error: operand expected (error token is "/ 1024")
HI there,
When I run the script, I get the follwing error:
line 39: / 1024: syntax error: operand expected (error token is "/ 1024")
Any idea how I can fix it to run the script?
Thanks,
Which shell are you using?
@andresglx if you're using mac terminal, you can fix it by replacing line 39 with
orig_size="$(($(stat -f "%z" files/"$file") / 1024))"
Issue specific to Terminal on Mac. Need more testing...