better error message

This commit is contained in:
Jérémy Lecour 2022-11-23 12:56:22 +01:00 committed by Jérémy Lecour
parent 8ee2aa3b51
commit 860b982556
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ ionice -c3 "${DUC}" index -d "${IDX_FILE}" "${JAILDIR}"
touch "${INDEX_DIR}/.lastrun.duc"
EOF
[ ! -f "${INDEX_DIR}/.lastrun.duc" ] && notice "First run of DUC always in progress ..." && exit 0
[ ! -f "${INDEX_DIR}/.lastrun.duc" ] && notice "First run of DUC still in progress ..." && exit 0
[ ! -f ${IDX_FILE} ] && error "Index file doesn't exits !"
printf "Last update of index file : "