[fix] Move root check to top of so-setup

This commit is contained in:
William Wernert committed 2020-10-27 09:39:29 -04:00
1 parent 564ac3a4ff
commit e75f8ba257
2 files changed
+8 -9

No files matched your search

-9
View File
@@ -1003,15 +1003,6 @@ get_redirect() {
fi
}
got_root() {
# Make sure you are root
uid="$(id -u)"
if [ "$uid" -ne 0 ]; then
echo "This script must be run using sudo!"
exit 1
fi
}
get_minion_type() {
local minion_type
case "$install_type" in