Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andresglx opened this issue Apr 7, 2021 · 3 comments
Open

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

andresglx opened this issue Apr 7, 2021 · 3 comments

Comments

@andresglx
Copy link

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,

@ameer1234567890
Copy link
Owner

Which shell are you using?

@nelsonwija
Copy link

nelsonwija commented Jul 19, 2021

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

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

@ameer1234567890
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants