Skip to content

Commit

Permalink
install.sh: Add function to install a symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Jul 9, 2020
1 parent 9c3aedb commit 0cef711
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ function install_cron()
install_if "$1" "$2" $INSTALL_CRON
}

function install_symlink()
{
if [ "$(readlink "$2")" != "$1" ]; then
ln -sfv "$1" "$2"
fi
}

umask 022;

mkdir -p "$DESTDIR$usr_bindir"
Expand Down

0 comments on commit 0cef711

Please sign in to comment.