Skip to content

Commit

Permalink
fix: ensure Arch’s install always works
Browse files Browse the repository at this point in the history
Upon machine creation, `pacman` cannot install software without an
initial `pacman --refresh --sync` (or `pacman -yS`, but referred to in
Arch documentation as `pacman -Sy`).

This change adds the missing `--refresh`/`-y` to the `pacman` call used
by the `install` alias.

Signed-off-by: Lucas Larson <[email protected]>
  • Loading branch information
LucasLarson committed May 11, 2024
1 parent 3ba2dfd commit 75213f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
if command -v -- apk >/dev/null 2>&1; then
alias install='command apk add --verbose'
elif command -v -- pacman >/dev/null 2>&1; then
alias install='command pacman --noconfirm --sync --verbose'
alias install='command pacman --noconfirm --refresh --sync --verbose'
elif command -v -- apt-get >/dev/null 2>&1; then
alias install='command apt-get install --assume-yes --show-progress'
fi
Expand Down

0 comments on commit 75213f6

Please sign in to comment.