fix output

This commit is contained in:
Jakobus Schürz 2020-01-22 10:26:02 +01:00
parent 50737de42e
commit ad3231d6f1

View file

@ -101,11 +101,11 @@ fi
if [ $(id -u) -ne 0 ]; then 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}" >>${MYSHELLCONFIG_LOGFILE}
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}
else else
echo "${HOME}/WORK exists and is real directory" >>${MYSHELLCONFIG_LOGFILE} 2>&1 echo "${HOME}/WORK exists and is real directory" |tee -a ${MYSHELLCONFIG_LOGFILE} 2>&1
fi fi
fi fi