install_command="install"
else
if command -v apt &> /dev/null; then
- command_name="apt"
+ command_name="yum"
install_command="install"
else
if command -v pacman &> /dev/null; then
command_name="pacman"
install_command="-Sy"
else
- echo "Error: No valid package manager. Make sure brew or apt are available."
- exit 1
+ if command -v pacman &> /dev/null; then
+ command_name="apt"
+ install_command="install"
+ else
+ echo "Error: No valid package manager. Make sure brew or apt are available."
+ exit 1
+ fi
fi
fi
fi