install.sh: Fallback to using cargo (#639)
This commit is contained in:
parent
1d9ce94f96
commit
25a2732817
1 changed files with 4 additions and 3 deletions
|
@ -87,8 +87,9 @@ __atuin_install_linux(){
|
||||||
else
|
else
|
||||||
if ! command -v lsb_release &> /dev/null; then
|
if ! command -v lsb_release &> /dev/null; then
|
||||||
echo "lsb_release could not be found, unable to determine your distribution"
|
echo "lsb_release could not be found, unable to determine your distribution"
|
||||||
echo "If you are using Arch Linux, please get community/lsb-release"
|
echo "If you are using Arch Linux, please get community/lsb-release or install Atuin using pacman"
|
||||||
exit 1
|
echo
|
||||||
|
__atuin_install_unsupported
|
||||||
fi
|
fi
|
||||||
OS=$(lsb_release -i | awk '{ print $3 }')
|
OS=$(lsb_release -i | awk '{ print $3 }')
|
||||||
fi
|
fi
|
||||||
|
@ -158,7 +159,7 @@ __atuin_install_unsupported(){
|
||||||
echo "If you have any problems, please open an issue!"
|
echo "If you have any problems, please open an issue!"
|
||||||
|
|
||||||
while true; do
|
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
|
case $yn in
|
||||||
[Yy]* ) __atuin_install_cargo; break;;
|
[Yy]* ) __atuin_install_cargo; break;;
|
||||||
[Nn]* ) exit;;
|
[Nn]* ) exit;;
|
||||||
|
|
Loading…
Reference in a new issue