Skip to content
Snippets Groups Projects
Commit 97eed314 authored by Florent Thiery's avatar Florent Thiery
Browse files

exit getenvsetup.sh script if not run by root

parent 783f33af
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
add-apt-repository universe
apt update
apt full-upgrade -y
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment