summaryrefslogtreecommitdiffstats
path: root/install.sh
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-04-26 16:54:53 +0100
committerEllie Huxtable <e@elm.sh>2021-04-26 18:04:56 +0100
commit9356736ca16c0b575a9408ad23c532e17b8ffccb (patch)
tree3e8544ca34fb509afb810ba1afcc060f382a58a2 /install.sh
parente4eead826380b7036e9c3f7d2d060b6444767d75 (diff)
Release v0.6.3v0.6.3
First proper release! - Update install script - Correct dependencies - Update workflow release script
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh49
1 files changed, 18 insertions, 31 deletions
diff --git a/install.sh b/install.sh
index 31759681..0b7239f0 100755
--- a/install.sh
+++ b/install.sh
@@ -26,24 +26,24 @@ LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/ell
LATEST_VERSION=$(echo $LATEST_RELEASE | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/')
__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
- else
- echo "Failed to install atuin! Please try manually: https://aur.archlinux.org/packages/atuin/"
- fi
+ 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
+ else
+ echo "Failed to install atuin! Please try manually: https://aur.archlinux.org/packages/atuin/"
+ fi
}
@@ -58,17 +58,6 @@ __atuin_install_ubuntu(){
rm -f "$TEMP_DEB"
}
-__atuin_install_fedora(){
- echo "Fedora detected"
- # TODO: select correct AARCH too
- ARTIFACT_URL="https://github.com/account/project/releases/download/$LATEST_VERSION/atuin_$LATEST_VERSION_amd64.rpm"
-
- TEMP_DEB="$(mktemp)" &&
- wget -O "$TEMP_DEB" $ARTIFACT_URL
- sudo dpkg -i "$TEMP_DEB"
- rm -f "$TEMP_DEB"
-}
-
__atuin_install_linux(){
echo "Detected Linux!"
echo "Checking distro..."
@@ -88,8 +77,6 @@ __atuin_install_linux(){
__atuin_install_arch
elif [ $OS == "Ubuntu" ] || [ $OS == "Debian" ] || [ $OS == "Linuxmint" ] || [ $OS == "Parrot" ] || [ $OS == "Kali" ]; then
__atuin_install_ubuntu
- elif [ $OS == "Fedora" ]; then
- __atuin_install_fedora
else
# TODO: download a binary or smth
__atuin_install_unsupported