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 }