create link on ~/WORK if it is not a file
This commit is contained in:
parent
a1f2238de6
commit
a63dca8ff8
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ if [[ $- = *i* ]] ; then
|
|||
|
||||
WDOTD=$(date "+${HOME}/archive/work/%Y/%m/work_%Y%m%d")
|
||||
[ -e $WDOTD ] || mkdir -p "${WDOTD}"
|
||||
[ -h "${HOME}/WORK" ] && ln -sf "${WDOTD}" "${HOME}/WORK"
|
||||
[ -f "${HOME}/WORK" ] || ln -sf "${WDOTD}" "${HOME}/WORK"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue