-
Notifications
You must be signed in to change notification settings - Fork 53
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
get_docopts.sh downloads 32-bit build instead of 64-bit on macOS Catalina #44
Comments
hi @aerz Thanks for your debug, I will merge this code and adapt the |
Hi @aerz Thanks reporting this issue. I corrected it and add some test for it. I also released a new version v0.6.3-rc2, which only change a single feature in But I took this opportunity to apply many internal changes which was overdue. I'm curious in what project are you using The Regards, |
Hi @Sylvain303 Sorry for taking so long to respond. I'm using docopts in a dotfiles wrapper to get the help message and parse arguments easily. It needs more work but you can take a look here. And I discover docopts because other devs are using it in their dotfiles (python implementation) and I found it really useful as well. I'll update to the new version. Thanks again! 😁 |
Hi @aerz Your code: docs::extract_help() {
local -r file="$1"
grep "^##?" "$file" | cut -c 5-
}
Lines 34 to 75 in 791ff6e
which is the code I changed in the version 0.6.3-rc2. I changed You can test it that way by script or interactively:
I noticed: https://raw.githubusercontent.com/aerz/dotfiles/master/install is a 404 in your You can close this issue if it works as expected. |
Hi @Sylvain303, Thanks for spend some time revising my code. I'll make some changes soon to use the docopts helpers. 🙂 I would like to suggest one thing for README file. I've tested docopts in my Raspbery Pi in which I've installed Raspbian. Raspbian comes with
I noticed the problem is because there are many implementations around awk (mawk, nawk, gawk, awk) and if I install gawk, the tests works. So, maybe it would be useful to add gawk in GNU/Linux distros is required to run docopts. I didn't use awk too much and it wasn't obvious for me. I can do a PR if you don't want to spend time. I see you're working in #22 to cover this, but it would add value to users who use other distros, I guess. Back to the issue, Regards! |
Hi.
I'm trying to use docopts on a side project, so I've cloned the repo and executed
get_docopts.sh
to download the build. Unfortunately it downloads the 32-bit build.I noticed
arch
command is used in the script, which returns mei386
. This mismatch happens becausearch
doesn't work in the same way on macOS as it's mentioned here: https://stackoverflow.com/questions/12763296/os-x-arch-command-incorrectCould be fixed checking
uname -m
command and comparing with ARCH variable when macOS is detected.The text was updated successfully, but these errors were encountered: