mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-06-30 08:10:28 +10:00
Fix pacman check
This commit is contained in:
+2
-2
@@ -138,7 +138,7 @@ for selection in $CHOICE; do
|
|||||||
"4")
|
"4")
|
||||||
echo "Installing Pacman Packages..."
|
echo "Installing Pacman Packages..."
|
||||||
# Check if pacman binary is installed
|
# Check if pacman binary is installed
|
||||||
if command -v pacman </dev/null; then
|
if command -v pacman >/dev/null; then
|
||||||
echo "Cannot proceed: pacman binary not found"
|
echo "Cannot proceed: pacman binary not found"
|
||||||
exit 1 # exit with an error
|
exit 1 # exit with an error
|
||||||
fi
|
fi
|
||||||
@@ -158,7 +158,7 @@ for selection in $CHOICE; do
|
|||||||
"5")
|
"5")
|
||||||
echo "Installing Yay and Yay Packages..."
|
echo "Installing Yay and Yay Packages..."
|
||||||
# Check for pacman before installing yay
|
# Check for pacman before installing yay
|
||||||
if command -v pacman </dev/null; then
|
if command -v pacman >/dev/null; then
|
||||||
echo "Cannot proceed: Not a arch based system"
|
echo "Cannot proceed: Not a arch based system"
|
||||||
exit 1 # Exit with an error
|
exit 1 # Exit with an error
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user