Ask for sudo

This commit is contained in:
RealStickman 2021-02-16 18:34:17 +01:00
parent 9748cb3cb7
commit db4e3a2885

View File

@ -4,6 +4,11 @@ set -euo pipefail
#ANY CHANGES TO THE INSTALLATION PROCEDURE SHOULD BE MADE HERE #ANY CHANGES TO THE INSTALLATION PROCEDURE SHOULD BE MADE HERE
# check if user is root
if [ "$EUID" -ne 0 ]; then
sudo -l > /dev/null
fi
#change to home (does not show in terminal) #change to home (does not show in terminal)
cd "$HOME" cd "$HOME"