dotfiles/symlinks/bin/get-package-manager-install...

11 lines
258 B
Bash
Executable File

#!/bin/sh
PACKAGE_MANAGER=$(get-package-manager-name)
if [ "$PACKAGE_MANAGER" = "pacman" ]; then
echo "sudo pacman -S"
elif [ "$PACKAGE_MANAGER" = "apt" ]; then
echo "sudo apt install"
elif [ "$PACKAGE_MANAGER" = "dnf" ]; then
echo "sudo dnf install"
fi