tinifier icon indicating copy to clipboard operation
tinifier copied to clipboard

syntax error: operand expected (error token is "/ 1024")

Open andresglx opened this issue 3 years ago • 3 comments

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,

andresglx avatar Apr 07 '21 12:04 andresglx

Which shell are you using?

ameer1234567890 avatar Apr 21 '21 08:04 ameer1234567890

@andresglx if you're using mac terminal, you can fix it by replacing line 39 with

orig_size="$(($(stat -f "%z" files/"$file") / 1024))"

nelsonwija avatar Jul 19 '21 15:07 nelsonwija

Issue specific to Terminal on Mac. Need more testing...

ameer1234567890 avatar Apr 09 '22 16:04 ameer1234567890