Sfoglia il codice sorgente

Add warning when run as root

bryan 1 anno fa
parent
commit
ff5051acd7
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      installJRMC

+ 2 - 0
installJRMC

@@ -133,6 +133,8 @@ init() {
     echo "Starting installJRMC"
     (( DEBUG )) || echo "To enable debugging output, use --debug or -d"
 
+    (( EUID == 0 )) && err "Running as root user"
+
     if [[ -e /etc/os-release ]]; then
         source "/etc/os-release"
     else