endeavouros-arm / install-script

install EndeavourOS on an ARM SBC
GNU General Public License v3.0
13 stars 9 forks source link

Handle edge case of "pacman -S" failing when installing EnOS Base Addons #18

Closed jsparknz closed 2 years ago

jsparknz commented 3 years ago

When installing on my Raspberry Pi 4 Model B, the mirror I selected (Sydney) was missing one package out of the base-addons install, so the "pacman -S command failed because of a 404 error on the missing package on the mirror.

The "ok_nok" function call after the "if...then...else" code block didn't catch it as failed, however, I think because the "systemctl enable dhcpcd.service" command that is after the pacman command and before the ok_nok call succeeded.

So, I have changed the commands in the "if...then...else" code block to be in a single line with logical AND between each, so that this (albeit unlikely!) edge case is handled correctly.