Resolve Bash Binary Operator Expected Error in Terminal on Mac - VicPhanDevOps/mac GitHub Wiki

• The following resolution is for if you receive a binary operator expected error when running a Bash script.
image

• Open your Bash script in your code editor of choice, wrap the path you’re checking for in double-quotes and save the change.
image

• Return to the terminal, type ./< script name >.sh and press return key to run the script again. You won’t receive the error this time around.
image

⚠️ **GitHub.com Fallback** ⚠️