Use case
for Linux distro choice in install.sh
(#1200)
This commit is contained in:
parent
b7481993e3
commit
2342a33923
1 changed files with 9 additions and 8 deletions
15
install.sh
15
install.sh
|
@ -92,14 +92,15 @@ __atuin_install_linux(){
|
||||||
else
|
else
|
||||||
OS=$(lsb_release -i | awk '{ print $3 }' | tr '[:upper:]' '[:lower:]')
|
OS=$(lsb_release -i | awk '{ print $3 }' | tr '[:upper:]' '[:lower:]')
|
||||||
fi
|
fi
|
||||||
if [ "$OS" == "arch" ] || [ "$OS" == "manjarolinux" ] || [ "$OS" == "endeavouros" ]; then
|
case "$OS" in
|
||||||
__atuin_install_arch
|
"arch" | "manjarolinux" | "endeavouros")
|
||||||
elif [ "$OS" == "ubuntu" ] || [ "$OS" == "ubuntuwsl" ] || [ "$OS" == "debian" ] || [ "$OS" == "linuxmint" ] || [ "$OS" == "parrot" ] || [ "$OS" == "kali" ] || [ "$OS" == "elementary" ] || [ "$OS" == "pop" ]; then
|
__atuin_install_arch;;
|
||||||
__atuin_install_ubuntu
|
"ubuntu" | "ubuntuwsl" | "debian" | "linuxmint" | "parrot" | "kali" | "elementary" | "pop")
|
||||||
else
|
__atuin_install_ubuntu;;
|
||||||
|
*)
|
||||||
# TODO: download a binary or smth
|
# TODO: download a binary or smth
|
||||||
__atuin_install_unsupported
|
__atuin_install_unsupported;;
|
||||||
fi
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
__atuin_install_mac(){
|
__atuin_install_mac(){
|
||||||
|
|
Loading…
Reference in a new issue