Update package managers to work properly more often

This commit is contained in:
askiiart 2023-08-28 18:01:19 -05:00
parent b0d81f4f0e
commit c76d0fcd11
No known key found for this signature in database
GPG key ID: 85505F3A2264FA01
4 changed files with 16 additions and 26 deletions

View file

@ -7,7 +7,7 @@ if [ $(whoami) != "root" ]; then
exit 1
fi
exit 0
command_exists() { type "$1" &> /dev/null; }
command_exists() { type "$1" &>/dev/null; }
if command_exists "apt-get"; then
$SUDO apt-get install zsh -y
@ -22,10 +22,10 @@ elif command_exists "emerge"; then
$SUDO emerge --ask app-shells/zsh-completions
$SUDO emerge --ask app-shells/gentoo-zsh-completions
elif command_exists "apk"; then
$SUDO apk add zsh -y;
$SUDO apk add zsh -y
else
>&2 echo "Unsupported: unknown package manager"
echo >&2 "Unsupported: unknown package manager"
exit 1
fi
cp -r zsh-files/* ~/
cp -r zsh-files/* ~/