mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
14 lines
312 B
Bash
Executable File
14 lines
312 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sudo pacman -S --noconfirm --needed "$@" || exit 1
|
|
|
|
for pkg in "$@"; do
|
|
# Secondary check to handle states where pacman doesn't actually register an error
|
|
if ! pacman -Q "$pkg" &>/dev/null; then
|
|
echo -e "\033[31mError: Package '$pkg' did not install\033[0m" >&2
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
exit 0
|