Updates
This commit is contained in:
parent
3b4a5a5ff1
commit
93ca44f1ad
15
setup.sh
15
setup.sh
@ -62,14 +62,14 @@ while true; do
|
|||||||
read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn
|
read -p "DO YOU WANT TO START THE INSTALLATION NOW? (Yy/Nn): " yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* )
|
[Yy]* )
|
||||||
echo "Installation started."
|
echo ":: Installation started."
|
||||||
echo
|
echo
|
||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
echo "Installation canceled."
|
echo ":: Installation canceled."
|
||||||
exit;
|
exit;
|
||||||
break;;
|
break;;
|
||||||
* ) echo "Please answer yes or no.";;
|
* ) echo ":: Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -111,17 +111,16 @@ unzip -o -q ~/Downloads/dotfiles-$v.zip -d ~/Downloads/
|
|||||||
echo ":: Unzip complete."
|
echo ":: Unzip complete."
|
||||||
cd $HOME/Downloads/dotfiles-$v
|
cd $HOME/Downloads/dotfiles-$v
|
||||||
echo ":: Changed into ~/Downloads/dotfiles-$v/"
|
echo ":: Changed into ~/Downloads/dotfiles-$v/"
|
||||||
|
echo
|
||||||
# Start the installatiom
|
# Start the installatiom
|
||||||
if gum confirm "DO YOU WANT TO START THE INSTALLATION NOW?" ;then
|
if gum confirm "DO YOU WANT TO START THE INSTALLATION NOW?" ;then
|
||||||
echo
|
echo
|
||||||
echo "Starting the installation now..."
|
gum spin --spinner dot --title "Starting the installation now..." -- sleep 3
|
||||||
sleep 2
|
|
||||||
./install.sh
|
./install.sh
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
exit 130
|
exit 130
|
||||||
else
|
else
|
||||||
echo "Installation canceled."
|
echo ":: Installation canceled."
|
||||||
echo "You can start the installation manually with ~/Downloads/dotfiles-$version/install.sh"
|
echo "You can also start the installation manually with ~/Downloads/dotfiles-$version/install.sh"
|
||||||
exit;
|
exit;
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user