We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 523e168 commit e33af24Copy full SHA for e33af24
unit6_fix_sp24.sh
@@ -20,10 +20,14 @@ bold='\033[1m'
20
## Script developed by rollingcoconut and sarcb
21
##########################################
22
23
-echo "THIS SCRIPT IS UNDER DEVELOPMENT. PLEASE DO NOT USE IT YET"
24
-
25
echo "[UNIT 6 LAB/PROJECT SPRING 2024 FIX] Starting script..."
26
+# Check if the user is root
+if [ "$EUID" -ne 0 ]; then
27
+ echo -e "${red}[ERROR]${none} Please run using sudo."
28
+ exit 1
29
+fi
30
+
31
CATALYST_INSTALL_PATH=/opt/catalyst
32
mkdir -p $CATALYST_INSTALL_PATH
33
pushd $CATALYST_INSTALL_PATH
0 commit comments