append to logfile

This commit is contained in:
Jakobus Schürz 2020-01-22 10:11:11 +01:00
parent 66d74eee9f
commit 7417b5f6d5

View file

@ -103,9 +103,9 @@ if [ $(id -u) -ne 0 ]; 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 -svnf "${WDOTD}" "${HOME}/WORK" >${MYSHELLCONFIG_LOGFILE} 2>&1
ln -svnf "${WDOTD}" "${HOME}/WORK" >>${MYSHELLCONFIG_LOGFILE} 2>&1
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