-
Notifications
You must be signed in to change notification settings - Fork 146
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
Doesn't work with OSX default getopt #12
Comments
I made the changes as mentioned above. But still the file is not getting uploaded. Script is not able to find the fileName when this command is used I have hardcoded the fileName in upload.sh. Then file is getting uploaded to a folder with name --options, rather than the desired folder. And I don't even have access to that --options folder. I am just able to see this newly uploaded file in 'Recent files'. |
I use this script on linux and its very useful. Recently I tried on OSX (macOS 10.15) and ist dosesn't work, as few used utilities (getopt, stat and sed) which are per default available on OSX work a bit differently. Then in works.. |
OSX comes with non-gnu versions of getopt, sed and stat, which cause this script to behave badly - help doesn't work, some commands do work, but it does things like create folders called
--options
in your drive!You can work around this by running
brew install coreutils gnu-sed gnu-getopt
and then following the instructions to put the gnu getopt in your path:
You'll also need to modify
upload.sh
to usegstat
instead ofstat
andgsed
instead ofsed
, unless you are willing to force your system to use gnu utils by default, as described in https://apple.stackexchange.com/questions/69223/how-to-replace-mac-os-x-utilities-with-gnu-core-utilitiesThe text was updated successfully, but these errors were encountered: