From 3baa2d2f2232d77b8925fdbc1dec9a604d3afe67 Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 4 May 2025 19:17:58 +0200 Subject: [PATCH] wip --- colorscript.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/colorscript.sh b/colorscript.sh index b3c0d21..9f074f3 100644 --- a/colorscript.sh +++ b/colorscript.sh @@ -61,18 +61,17 @@ clone() { link() { if [ -d "$HOME/.local/bin" ]; then $_sudo ln -sfr /opt/shell-color-scripts/colorscript.sh "$HOME/.local/bin/colorscript" || echo_error "Could not link the script" + $_sudo ln -sfr /opt/shell-color-scripts/colorscript.sh /usr/bin/colorscript || echo_error "Could not link the script" else - if check_root; then - $_sudo ln -sfr /opt/shell-color-scripts/colorscript.sh /bin/colorscript - else - echo_warning "cloned the project to /opt/ but was not able to link the script to the bin directory!" - fi + $_sudo ln -sfr /opt/shell-color-scripts/colorscript.sh /usr/bin/colorscript || echo_error "Could not link the script" fi } checkInstall() { if command_exists colorscript; then echo_note "Installation complete" + else + echo_warning "Something went wrong?" fi }