Closed Stonks3141 closed 10 months ago
Hi, really appreciate the PR making sure it's POSIX compliant. Most of the people working on the project write and test the script(s) on bash, so this is nice.
However, unfortunately, in my testing this seems kind of borked. I personally don't have the time to make some of the necessary fixes. If you are willing to make the changes, that'll be great, otherwise we might have to wait for someone to pick this up if that's ok.
Thanks for taking a look! Could you paste the output? I can't test it easily.
Hi, sorry for the late reply but:
This is what I see when I try to run through the options, there might be more after this but this is where it taps out
install.sh: line 452: syntax error near unexpected token `then'
install.sh: line 452: `if [ "$CONFIRMATION" = "Y" ]] || [ "$CONFIRMATION" = "y" ]; then'
Whoops, seems like I forgot to delete a bracket. Try it now.
Hi, there are a few more errors after still. Looks like more missing brackets. I think there might be even more after, uh.. might be best to do a quick run through of the script till it executes.
install.sh: line 381: unexpected EOF while looking for matching `]' install.sh: line 487: syntax error: unexpected end of file
Okay, shellcheck is passing on it now so should be all done.
Yup, it seems to fully work now!! Great work, thank you so much! I'll ask people to test this on the discord as well, and if nothing comes up, we'll get this merged.
Contrary to popular belief, bash is not universal on Linux systems.
$XDG_DATA_HOME
[[
with the universal[
case
instead of if-else chains where appropriatesleep
s support fractional seconds)cd ..
aftercd
'ing