wip
This commit is contained in:
parent
951ed75144
commit
3baa2d2f22
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue