Installation fails to proceed after selecting AUR helper
Shahab96 opened this issue · comments
Describe the bug
While testing stuff out on my desktop I ran ./install-on-arch.sh and made it to the aur helper prompt. Upon responding no (because I already have paru installed), the installation failed with the error
./install-on-arch.sh: line 101: -S: command not found
To Reproduce
Steps to reproduce the behavior:
- Run ./install-on-arch.sh
- Select your AUR helper
- Respond no to installing the helper
- See error
Expected behavior
Installation should proceed to the end
Desktop (please complete the following information):
- OS:
neofetch.txt
Feel free to assign this one to me as well.
It seems that the selection for the helper is not actually being preserved.
After checking out the code it looks like the $HELPER variable is not in scope outside of the case statement
#
dotfiles-2.0/install-on-arch.sh
Lines 73 to 84 in 3699ab7
Since we're using paru as the default we might be able to get away with setting HELPER to paru outside the case statement to make it's scope be the entire file.
Yep, maybe setting HELPER as paru on top of the file will do the trick. I'm not sure why the case expression doesn't fully work though...
Well, since this is done, closing.