diff --git a/setupfedora.sh b/setupfedora.sh index ba4419a..536ff50 100755 --- a/setupfedora.sh +++ b/setupfedora.sh @@ -1,4 +1,10 @@ #!/bin/bash ### Setup Fedora ### # Abort on errors -set -e \ No newline at end of file +set -e + +# Check if the script is running as root +if [[ $UID != "0" ]]; then + echo "ERROR: You must run this script as root!" + exit 1 +fi \ No newline at end of file