fix nested link creation in WORK
This commit is contained in:
parent
ff212c9f7c
commit
66fd6fcd3b
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ if [[ $- = *i* ]] ; then
|
|||
WDOTD=$(date "+${HOME}/archive/work/%Y/%m/work_%Y%m%d")
|
||||
[ -e $WDOTD ] || mkdir -pv "${WDOTD}"
|
||||
if [[ ( -e "${HOME}/WORK" && -h "${HOME}/WORK" ) || ! -e "${HOME}/WORK" ]] ; then
|
||||
ln -sf "${WDOTD}" "${HOME}/WORK"
|
||||
ln -svnf "${WDOTD}" "${HOME}/WORK"
|
||||
else
|
||||
echo "${HOME}/WORK exists and is real directory"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue