2023-11-10 16:12:15 -05:00
|
|
|
# ------------------------------------------------------
|
|
|
|
# Confirm Start
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
|
|
|
echo "IMPORTANT: Please make sure that your system and your packages are up to date."
|
|
|
|
echo "You can cancel the installation at any time with CMD + C"
|
2023-12-14 14:32:08 -05:00
|
|
|
echo "If you have already installed a window manager like sway, please backup your .config folder."
|
2023-11-10 16:12:15 -05:00
|
|
|
SCRIPT=$(realpath "$0")
|
|
|
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
|
|
if [ $SCRIPTPATH = "/home/$USER/dotfiles" ]; then
|
|
|
|
echo "IMPORTANT: You're running the installation script from the installation target directory."
|
|
|
|
echo "Please move the installation folder dotfiles e.g. to ~/Downloads/ and start the script again."
|
|
|
|
echo "Proceeding is not recommended!"
|
|
|
|
if [ ! $mode == "dev" ]; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2023-11-20 16:11:39 -05:00
|
|
|
if gum confirm "DO YOU WANT TO START THE INSTALLATION NOW?" ;then
|
|
|
|
echo "Installation started."
|
2023-11-21 15:19:51 -05:00
|
|
|
elif [ $? -eq 130 ]; then
|
|
|
|
exit 130
|
2023-11-20 16:11:39 -05:00
|
|
|
else
|
|
|
|
echo "Installation canceled."
|
|
|
|
exit;
|
|
|
|
fi
|
2023-11-10 16:12:15 -05:00
|
|
|
echo ""
|