summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Jackson <patrick@jackson.dev>2022-12-16 10:11:58 -0700
committerGitHub <noreply@github.com>2022-12-16 17:11:58 +0000
commit25a27328179a67af95573ed351d16e338788d27a (patch)
treecf8ba83e8620cac61ebdabb9177eb644d7a43bde
parent1d9ce94f968440e2ca7867406e803c2a18662da4 (diff)
install.sh: Fallback to using cargo (#639)
-rwxr-xr-xinstall.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index ff5ae8e6..da6c7628 100755
--- a/install.sh
+++ b/install.sh
@@ -87,8 +87,9 @@ __atuin_install_linux(){
else
if ! command -v lsb_release &> /dev/null; then
echo "lsb_release could not be found, unable to determine your distribution"
- echo "If you are using Arch Linux, please get community/lsb-release"
- exit 1
+ echo "If you are using Arch Linux, please get community/lsb-release or install Atuin using pacman"
+ echo
+ __atuin_install_unsupported
fi
OS=$(lsb_release -i | awk '{ print $3 }')
fi
@@ -158,7 +159,7 @@ __atuin_install_unsupported(){
echo "If you have any problems, please open an issue!"
while true; do
- read -r -p "Do you wish to attempt an install with 'cargo'?" yn
+ read -r -p "Do you wish to attempt an install with 'cargo'? [Y/N] " yn
case $yn in
[Yy]* ) __atuin_install_cargo; break;;
[Nn]* ) exit;;