Improve startup
This commit is contained in:
parent
316e0b95b7
commit
e2db26b229
|
@ -7,12 +7,25 @@ normal="$(tput sgr0)\n"
|
|||
|
||||
cd $HOME
|
||||
|
||||
# Exit if the entire script is running as root
|
||||
SCRIPTUID=$(id -u)
|
||||
if [[ $SCRIPTUID == 0 ]]; then
|
||||
echo "This script is not designed to be run as root. Please log with your regular user and run the script without sudo"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf "${green}\n\n"
|
||||
printf " This script will bootstrap a Void Linux\n"
|
||||
printf " install with packages and the Arc themes.\n"
|
||||
printf " install with packages and the GTK/Icon themes.\n"
|
||||
printf " You will be asked for your sudo password.\n\n${normal}"
|
||||
|
||||
sleep 5
|
||||
printf "${green}Script will proceed in:\n"
|
||||
for sec in {10..0}; do
|
||||
sleep 1
|
||||
printf "\33[2K\r"
|
||||
printf "$sec... (Ctrl+C to cancel)"
|
||||
done
|
||||
printf "${normal}\n"
|
||||
|
||||
printf "${green}Please input your sudo password.${normal}"
|
||||
sudo printf "${green}Thank you!${normal}"
|
||||
|
|
Loading…
Reference in New Issue