From bf7fc08b641edaafdc873859fd3a8f6a4eb28901 Mon Sep 17 00:00:00 2001 From: solomoncyj Date: Sun, 24 Apr 2022 09:05:20 +0800 Subject: [PATCH] Update archtitus.sh --- archtitus.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/archtitus.sh b/archtitus.sh index f436af9..4538a32 100755 --- a/archtitus.sh +++ b/archtitus.sh @@ -3,6 +3,7 @@ # # @file ArchTitus # @brief Entrance script that launches children scripts for each phase of installation. +# @testing if script was run as root for full os run if [ "$EUID" -ne 0 ] then echo "Please run as root" exit @@ -13,8 +14,6 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SCRIPTS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"/scripts CONFIGS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"/configs set +a -# @testing if script was run as root for full os run - echo -ne " ------------------------------------------------------------------------- █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗