Commit 9723c4ab authored by Florian Staudacher's avatar Florian Staudacher

don't let the install script run as root user

parent 5066db99
......@@ -180,6 +180,13 @@ interactive_check() {
fi
}
# check if this script is run as root
root_check() {
if [ `id -u` -eq 0 ] ; then
error "don't run this script as root!"
fi
}
# check if all necessary binaries are available
binaries_check() {
for exe in "${!BINARIES[@]}"; do
......@@ -447,6 +454,7 @@ prepare_gem_bundle() {
#### ####
#interactive_check
root_check
# display a nice welcome message
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment