From b549095d0b735d51c5d586f54392a838c64bfa04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Fri, 10 Dec 2021 01:52:45 +0300 Subject: [PATCH] Update install.sh to use `pacman` on Arch Linux (#229) --- install.sh | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/install.sh b/install.sh index c94b3d3..9d6d726 100755 --- a/install.sh +++ b/install.sh @@ -37,22 +37,28 @@ LATEST_VERSION=$(echo "$LATEST_RELEASE" | sed -e 's/.*"tag_name":"\([^"]*\)".*/\ __atuin_install_arch(){ echo "Arch Linux detected!" - 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 + if command -v pacman &> /dev/null + then + echo "Installing with pacman" + sudo pacman -S atuin 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 }