From fc6025d0aec1ff7f4e92a85d8868b991ce8b4f1e Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 4 May 2025 19:12:02 +0200 Subject: [PATCH] wip --- colorscript.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/colorscript.sh b/colorscript.sh index be4e8ec..5674c6a 100644 --- a/colorscript.sh +++ b/colorscript.sh @@ -53,7 +53,7 @@ fi clone() { local cloneDir="/opt/shell-color-scripts" if [ ! -d "$cloneDir" ]; then - git clone --depth=1 https://github.com/charitarthchugh/shell-color-scripts "$cloneDir" + $_sudo git clone --depth=1 https://github.com/charitarthchugh/shell-color-scripts "$cloneDir" fi } @@ -69,6 +69,7 @@ link() { fi } -if clone; then - link -fi +check_root && + if clone; then + link + fi