|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
# Function to check if running as root
|
|
# Function to check if running as root
|
|
|
check_root() {
|
|
check_root() {
|
|
|
- if [ "$(id -u)" -ne 0; then
|
|
|
|
|
|
|
+ if [ "$(id -u)" -ne 0 ]; then
|
|
|
echo "Please run this script as root."
|
|
echo "Please run this script as root."
|
|
|
echo "To switch to root, use: su"
|
|
echo "To switch to root, use: su"
|
|
|
echo "Then navigate to the home directory and clone the repository:"
|
|
echo "Then navigate to the home directory and clone the repository:"
|