pacman: remove excess quoting

This commit is contained in:
Aminda Suomalainen 2024-08-15 12:22:35 +03:00
parent 7099439e0e
commit f5f0ab22e3
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 4 additions and 4 deletions

View File

@ -6,16 +6,16 @@ export LC_ALL=en_DK.UTF-8
# if yay is installed and we aren't root, run it instead # if yay is installed and we aren't root, run it instead
if [[ -f /usr/bin/yay && $(id -u) != 0 ]]; then if [[ -f /usr/bin/yay && $(id -u) != 0 ]]; then
if [[ "$1" == "-S" ]]; then if [[ "$1" == "-S" ]]; then
/usr/bin/yay --needed "$*" /usr/bin/yay --needed $*
else else
/usr/bin/yay "$*" /usr/bin/yay $*
fi fi
# otherwise attempt to run pacman, but keep the --needed for installs # otherwise attempt to run pacman, but keep the --needed for installs
elif [[ -f /usr/bin/pacman ]]; then elif [[ -f /usr/bin/pacman ]]; then
if [[ "$1" == "-S" ]]; then if [[ "$1" == "-S" ]]; then
/usr/bin/pacman --needed "$*" /usr/bin/pacman --needed $*
else else
/usr/bin/pacman "$*" /usr/bin/pacman $*
fi fi
# otherwise fail gracefully # otherwise fail gracefully
else else