Treat command operands as literal values

This commit is contained in:
LM committed 2026-09-12 17:57:33 +02:00
1 parent 31bd80daa4
commit b72d7e5768
11 files changed
+276 -17

No files matched your search

+3 -3
View File
@@ -7,15 +7,15 @@
if omarchy-pkg-missing "$@"; then
if (( EUID == 0 )); then
pacman -S --noconfirm --needed "$@" || exit 1
pacman -S --noconfirm --needed -- "$@" || exit 1
else
sudo pacman -S --noconfirm --needed "$@" || exit 1
sudo pacman -S --noconfirm --needed -- "$@" || exit 1
fi
fi
for pkg in "$@"; do
# Secondary check to handle states where pacman doesn't actually register an error
if ! pacman -Q "$pkg" &>/dev/null; then
if ! pacman -Q -- "$pkg" &>/dev/null; then
echo -e "\033[31mError: Package '$pkg' did not install\033[0m" >&2
exit 1
fi