This commit is contained in:
Stephan Raabe 2024-05-27 17:46:33 +02:00
parent a5cff60489
commit 45bea3effa
2 changed files with 3 additions and 5 deletions

View File

@ -8,8 +8,7 @@ echo -e "${NONE}"
echo "A reboot of your system is recommended." echo "A reboot of your system is recommended."
echo echo
if gum confirm "Do you want to reboot your system now?" ;then if gum confirm "Do you want to reboot your system now?" ;then
echo ":: Rebooting now ..." gum spin --spinner dot --title "Rebooting now..." -- sleep 3
sleep 3
systemctl reboot systemctl reboot
elif [ $? -eq 130 ]; then elif [ $? -eq 130 ]; then
exit 130 exit 130

View File

@ -13,6 +13,7 @@ if [ ! -d $HOME/Downloads ] ;then
echo "ERROR:: $HOME/Downloads folder not found." echo "ERROR:: $HOME/Downloads folder not found."
exit exit
fi fi
echo
if gum confirm "Do you want to start the update now?" ;then if gum confirm "Do you want to start the update now?" ;then
# Remove existing download folder and zip files # Remove existing download folder and zip files
@ -56,9 +57,7 @@ if gum confirm "Do you want to start the update now?" ;then
# Start the installatiom # Start the installatiom
if gum confirm "Do you want to start the update now?" ;then if gum confirm "Do you want to start the update now?" ;then
echo gum spin --spinner dot --title "Starting the update now..." -- sleep 3
echo "Starting the update now..."
sleep 2
cd $HOME/Downloads/dotfiles-$v cd $HOME/Downloads/dotfiles-$v
./install.sh ./install.sh
elif [ $? -eq 130 ]; then elif [ $? -eq 130 ]; then