Update install.sh to use pacman
on Arch Linux (#229)
This commit is contained in:
parent
e242f89a66
commit
b549095d0b
1 changed files with 20 additions and 14 deletions
34
install.sh
34
install.sh
|
@ -37,22 +37,28 @@ LATEST_VERSION=$(echo "$LATEST_RELEASE" | sed -e 's/.*"tag_name":"\([^"]*\)".*/\
|
||||||
|
|
||||||
__atuin_install_arch(){
|
__atuin_install_arch(){
|
||||||
echo "Arch Linux detected!"
|
echo "Arch Linux detected!"
|
||||||
echo "Attempting AUR install"
|
|
||||||
|
|
||||||
if command -v yaourt &> /dev/null; then
|
if command -v pacman &> /dev/null
|
||||||
echo "Found yaourt"
|
then
|
||||||
yaourt -S atuin
|
echo "Installing with pacman"
|
||||||
elif command -v yay &> /dev/null; then
|
sudo pacman -S atuin
|
||||||
echo "Found yay"
|
|
||||||
yay -S atuin
|
|
||||||
elif command -v pakku &> /dev/null; then
|
|
||||||
echo "Found pakku"
|
|
||||||
pakku -S atuin
|
|
||||||
elif command -v pamac &> /dev/null; then
|
|
||||||
echo "Found pamac"
|
|
||||||
pamac install atuin
|
|
||||||
else
|
else
|
||||||
echo "Failed to install atuin! Please try manually: https://aur.archlinux.org/packages/atuin/"
|
echo "Attempting AUR install"
|
||||||
|
if command -v yaourt &> /dev/null; then
|
||||||
|
echo "Found yaourt"
|
||||||
|
yaourt -S atuin
|
||||||
|
elif command -v yay &> /dev/null; then
|
||||||
|
echo "Found yay"
|
||||||
|
yay -S atuin
|
||||||
|
elif command -v pakku &> /dev/null; then
|
||||||
|
echo "Found pakku"
|
||||||
|
pakku -S atuin
|
||||||
|
elif command -v pamac &> /dev/null; then
|
||||||
|
echo "Found pamac"
|
||||||
|
pamac install atuin
|
||||||
|
else
|
||||||
|
echo "Failed to install atuin! Please try manually: https://aur.archlinux.org/packages/atuin/"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue