Fix pkg-add
This commit is contained in:
1 parent
a44ea9c232
commit
3210ec44f5
1 file changed
+3
-1
+3
-1
@@ -1,7 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
for pkg in "$@"; do
|
||||
pacman -Q "$pkg" &>/dev/null
|
||||
if ! pacman -Q "$pkg" &>/dev/null; then
|
||||
sudo pacman -S --noconfirm "$pkg"
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
||||
Reference in new issue
Block a user