]> Creatis software - creaToolsTools.git/commitdiff
Forget to commit
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 21 Jan 2011 10:53:38 +0000 (10:53 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Fri, 21 Jan 2011 10:53:38 +0000 (10:53 +0000)
Linux/scripts/Check-if-root.sh [new file with mode: 0644]

diff --git a/Linux/scripts/Check-if-root.sh b/Linux/scripts/Check-if-root.sh
new file mode 100644 (file)
index 0000000..15cbbd2
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bassh -e
+
+if [ $UID != 0 ] 
+then
+   echo
+   echo "..ERROR.."
+   echo "==================================================="
+   echo "REMEMBER !"
+   echo ""
+   echo "YOU NEED TO RUN THIS ONE AS root"
+   echo "==================================================="
+   echo
+   echo
+   exit 0
+fi