This commit is contained in:
pika 2025-05-04 19:17:58 +02:00
parent 951ed75144
commit 3baa2d2f22

View file

@ -61,18 +61,17 @@ clone() {
link() { link() {
if [ -d "$HOME/.local/bin" ]; then 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 "$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 else
if check_root; then $_sudo ln -sfr /opt/shell-color-scripts/colorscript.sh /usr/bin/colorscript || echo_error "Could not link the script"
$_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
fi fi
} }
checkInstall() { checkInstall() {
if command_exists colorscript; then if command_exists colorscript; then
echo_note "Installation complete" echo_note "Installation complete"
else
echo_warning "Something went wrong?"
fi fi
} }