fix sudo
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Ensure the script is run as root
|
# Ensure the script is run as root
|
||||||
if [ $EUID -ne 0 ] then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "❌ This script must be run as root. Please use sudo."
|
echo "You must be root to do this." 1>&2
|
||||||
exit 1
|
exit 100
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set your target disk here
|
# Set your target disk here
|
||||||
|
|||||||
Reference in New Issue
Block a user