diff --git a/CloneToDisk.sh b/CloneToDisk.sh index e0fb831..35c3194 100755 --- a/CloneToDisk.sh +++ b/CloneToDisk.sh @@ -2,9 +2,9 @@ set -e # Ensure the script is run as root -if [ $EUID -ne 0 ] then -   echo "❌ This script must be run as root. Please use sudo." -   exit 1 +if [[ $EUID -ne 0 ]]; then + echo "You must be root to do this." 1>&2 + exit 100 fi # Set your target disk here