# success=false # if [ $success = true ] ; then # echo $success # fi # curdir="$(pwd)" # echo $curdir if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" exit 1 fi echo "root"