2019-04-27 22:09:36 +00:00
|
|
|
#! env zsh
|
2019-12-11 05:52:23 +00:00
|
|
|
# -*- sh -*-
|
|
|
|
|
2019-04-27 22:09:36 +00:00
|
|
|
REPORT=`dirname $0`/report
|
|
|
|
|
|
|
|
if [ -z "$1" ] || [ -z "$2" ] ; then
|
|
|
|
$REPORT error "ERROR: Both to and from string must be defined.\n source: $1 \n symlnk: $2"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -e $2 ]] ; then
|
|
|
|
$REPORT warn "$2 already exist. Skipping."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
$REPORT info "Symlinked `ln -svf $1 $2`"
|
2019-12-11 05:52:23 +00:00
|
|
|
|