Also give number of files for error message
This commit is contained in:
parent
525826f0d0
commit
ee6bd3a194
|
@ -42,7 +42,7 @@ tar_file_name="${date_year}.${current_dir}${xz_compression_lvl}.tar.xz"
|
||||||
|
|
||||||
# If archive already exists
|
# If archive already exists
|
||||||
if [ -s "${tar_file_name}" ]; then
|
if [ -s "${tar_file_name}" ]; then
|
||||||
printf "${c_redb}%-6b${c_reset}\n" "ERROR : ${tar_file_name} already exists. Please manage this directory manually or remove the archive and restart."
|
printf "${c_redb}%-6b${c_reset}\n" "ERROR : ${tar_file_name} already exists (also ${match_files} files match the expected pattern). Please manage this directory manually or remove the archive or files then restart."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue