append to logfile
This commit is contained in:
parent
66d74eee9f
commit
7417b5f6d5
1 changed files with 2 additions and 2 deletions
|
@ -103,9 +103,9 @@ if [ $(id -u) -ne 0 ]; then
|
||||||
WDOTD=$(date "+${HOME}/archive/work/%Y/%m/work_%Y%m%d")
|
WDOTD=$(date "+${HOME}/archive/work/%Y/%m/work_%Y%m%d")
|
||||||
[ -e $WDOTD ] || mkdir -pv "${WDOTD}"
|
[ -e $WDOTD ] || mkdir -pv "${WDOTD}"
|
||||||
if [[ ( -e "${HOME}/WORK" && -h "${HOME}/WORK" ) || ! -e "${HOME}/WORK" ]] ; then
|
if [[ ( -e "${HOME}/WORK" && -h "${HOME}/WORK" ) || ! -e "${HOME}/WORK" ]] ; then
|
||||||
ln -svnf "${WDOTD}" "${HOME}/WORK" >${MYSHELLCONFIG_LOGFILE} 2>&1
|
ln -svnf "${WDOTD}" "${HOME}/WORK" >>${MYSHELLCONFIG_LOGFILE} 2>&1
|
||||||
else
|
else
|
||||||
echo "${HOME}/WORK exists and is real directory" >${MYSHELLCONFIG_LOGFILE} 2>&1
|
echo "${HOME}/WORK exists and is real directory" >>${MYSHELLCONFIG_LOGFILE} 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue