The bash script above will not work for Mac users as inotifywait
is a Linux-specific command. I wrote a modified version that uses fswatch
instead, which should be available to both Mac and Linux users. Mac users will need to install fswatch
using brew or some other method.
$ brew install fswatch
I use the following script:
#!/bin/bash
ORIGIN=$PWD/Program\ Files\ \(x86\)/Origin
fswatch -o "${ORIGIN}" | while read; do
chmod u+x "${ORIGIN}";
echo 'Permissions updated.';
done
Run this script from the "drive_c" folder of the Bottle you have Origin installed in. (The script does not need to be located there.) Personally, I prefer a file script to a "one-liner" in case I need to make changes later (and an "echo" statement to tell me that it's working), but you should be able to adapt this to a single command line.