Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ Please file an issue or reach out on the forum if you encounter any problems!

EOF

__atuin_install_binary(){
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/atuinsh/atuin/releases/latest/download/atuin-installer.sh | sh
}

if ! command -v curl > /dev/null; then
echo "curl not installed. Please install curl."
exit
Expand All @@ -34,8 +30,9 @@ elif ! command -v sed > /dev/null; then
exit
fi

install_script=$(curl --proto '=https' --tlsv1.2 -LsSf https://github.com/atuinsh/atuin/releases/latest/download/atuin-installer.sh)

__atuin_install_binary
echo "$install_script" | sh

# TODO: Check which shell is in use
# Use of single quotes around $() is intentional here
Expand Down