Also give number of files for error message

This commit is contained in:
Jeremy Gardais 2020-01-08 10:53:05 +01:00
parent 525826f0d0
commit ee6bd3a194
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ tar_file_name="${date_year}.${current_dir}${xz_compression_lvl}.tar.xz"
# If archive already exists
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
fi