]> Creatis software - creaToolsTools.git/blob - Linux/scripts/Check-if-root.sh
run *everything* with bash (*not* with sh)
[creaToolsTools.git] / Linux / scripts / Check-if-root.sh
1 #!/bin/bash -e
2
3 if [ $UID != 0 ] 
4 then
5    echo
6    echo "..ERROR.."
7    echo "==================================================="
8    echo "REMEMBER !"
9    echo ""
10    echo "YOU NEED TO RUN THIS ONE AS root"
11    echo "==================================================="
12    echo
13    echo
14    exit 0
15 fi