Skip to content

Commit

Permalink
fix: get install.sh working on UbuntuWSL (atuinsh#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
elsbrock authored Jan 18, 2022
1 parent 84403a3 commit c2dd332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ __atuin_install_ubuntu(){
# TODO: select correct AARCH too
ARTIFACT_URL="https://github.com/ellie/atuin/releases/download/$LATEST_VERSION/atuin_${LATEST_VERSION//v/}_amd64.deb"

TEMP_DEB="$(mktemp)" &&
TEMP_DEB="$(mktemp)".deb &&
curl -Lo "$TEMP_DEB" "$ARTIFACT_URL"
if command -v sudo &> /dev/null; then
sudo apt install "$TEMP_DEB"
Expand All @@ -95,7 +95,7 @@ __atuin_install_linux(){

if [ "$OS" == "Arch" ] || [ "$OS" == "ManjaroLinux" ]; then
__atuin_install_arch
elif [ "$OS" == "Ubuntu" ] || [ "$OS" == "Debian" ] || [ "$OS" == "Linuxmint" ] || [ "$OS" == "Parrot" ] || [ "$OS" == "Kali" ] || [ "$OS" == "Elementary" ]; then
elif [ "$OS" == "Ubuntu" ] || [ "$OS" == "UbuntuWSL" ] || [ "$OS" == "Debian" ] || [ "$OS" == "Linuxmint" ] || [ "$OS" == "Parrot" ] || [ "$OS" == "Kali" ] || [ "$OS" == "Elementary" ]; then
__atuin_install_ubuntu
else
# TODO: download a binary or smth
Expand Down

0 comments on commit c2dd332

Please sign in to comment.