Axarva / dotfiles-2.0

XMonad™️. Widgets go brr.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Run ./install-on-arch.sh
  2. Select your AUR helper
  3. Respond no to installing the helper
  4. See error

Expected behavior
Installation should proceed to the end

Screenshots
Screenshot_2021-07-22-11_3840x1080

Desktop (please complete the following information):

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

#

case $num in
[1])
HELPER="paru"
;;
[2])
HELPER="yay"
;;
[*])
HELPER='paru'
;;
esac

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.