-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
add mac friendly options in script (fix bashisms, file paths, need OSx tester) #11
Comments
@jhonkaman someone on reddit who was messing with the script got an answer for me... maybe.. what do you see in you |
Mac puts files here (example firefox) myself:~ dznutz$ sudo find ~/Library/ -type f |grep -i firefox | cut -f 1-8 -d / | uniq -c |sort -n |
lol @grokskookum, i dig the username haha. it looks like Library may be the place, your links have 2 slashes between library and things lke Application support, is there a missing field in there? |
@tallguyjenks there are a lot of folders in |
@jhonkaman the single folder per application was probably what i was looking for. in that case, can you install the dependencies listed in the readme |
Yes, I'll try installing them now. |
It looks like |
no need, the script should take care of that, but i need to adjust for mac, ill do that tonight, finishing my work day and errands at the moment |
@jhonkaman or @grokskookum what is the output of the |
The output for both of those commands is |
excellent, then i may have a fix with a simple case statement. then ill need to you add the new script to a place in your $PATH then run it and see if anything breaks, will update you at that point |
@jhonkaman can you run this command in your terminal |
@jhonkaman @grokskookum ive pushed a mac friendly version to master, please test and see if it works as expected. put the flash script in your $PATH somewhere and run it :) |
For your previous question, The terminal emulator is just the built-in Terminal app on macOS. I installed fzf and bat using Homebrew. I'll try installing your script tomorrow. |
perfect, if it works, then with homebrew installation of the 2 programs, we'll be good to go on mac! |
I got the following output when I ran
Maybe I messed up the installation. |
@jhonkaman no i see what went wrong, the mac file path has a space in it and i didnt quote one of the instances of the variable holding the file path, i just fixed, grab the latest commit of the script and try again |
Got a little farther:
|
@jhonkaman found'em, more unquoted paths, thanks apple... lol rinse and repeat, try again with latest build |
Ok. Still getting these errors:
|
okay try again, i switched some of the command substitution quoting and can you post the output of |
I think this page has the info you need for |
well for the Darwin page, it says the |
Ok I think that worked. This is what I see now. How do I get the sample deck?
|
thats good, but not the answer that should have been displayed, can you i pushed some more changes to try after that too |
|
okay so its not making the example deck like it should, did you re-run the latest commit: 46deb03 |
Yes, I'm still getting the same output from above. |
i think it may have been the use of variables in the brace expansion for OSx... maybe. moved some things around try latest build |
I tried the latest build, but I'm still getting the same output. |
okay i have 2 more ideas for this issue. can you first test and anywhere in your system run |
|
@jhonkaman alright i removed the brace expansion and just made individual touch commands, try build c8391d9 |
Now I'm getting the previous error again:
|
god, mac is such a pain. try 9ab26d5 |
I'm still getting the same output. I think this might be the issue: https://stackoverflow.com/questions/17548854/difference-between-mac-find-and-linux-find |
@jhonkaman alright, i added the find path, lets see if the latest build works 0b1f60a |
Ok, that got rid of the error. Still getting this part:
If I had to guess, it looks like you're checking to see if any decks exist on line 124 and returning to the starting directory if there aren't any decks. I think you should add the |
first, can you remove the entire directory and all its contents and run it fresh? the script is meant to work on the first go, if it makes the directory but not the deck then it will be stuck until a deck is made, try a clean slate one more time |
with build |
Ok, tried it. Output:
|
Progress! i get it now, i think i need to escape the spaces in the double quoted strings, new build coming in one sec.... okay: 23baa6d |
Ok, now I'm getting two things:
And:
|
I installed
|
@jhonkaman found it, it was a missing |
Latest output:
|
Also, does it matter if my shell is zsh? |
yeah it matters, zsh breaks scripts with bashisms im not sure if thats whats happening or not though.. |
It shouldn't matter if your shell is zsh. Your script includes a shebang line at the top, so as long as you're invoking the file using Seems like the way |
@jsnal thats what im thinking and im unsure about how to make it work at this point, i tried to escape the space but IIRC that breaks the file path |
Alright so I did some testing and it seems like if you remove |
originally it was helping with another issue or so i thought, but if
removing it makes it function as expected, wanna send a pull request? :)
and thanks for testing! this is great if it now works on macOS!
…On 20/05/14 10:32AM, Jason wrote:
Alright so I did some testing and it seems like if you remove eval from
your touch statement it works as expected. I tested it with Linux and
macOS 10.14.6 (Mojave) and it seems to install everything fine. Why are
you using eval there?
—
You are receiving this because you were mentioned.
Reply to this email directly, [1]view it on GitHub, or [2]unsubscribe.
References
1. #11 (comment)
2. https://github.com/notifications/unsubscribe-auth/AHD5FNS67KY2JEX3UZELSYLRRQTKFANCNFSM4MNVHDMQ
|
No description provided.
The text was updated successfully, but these errors were encountered: