Commit 7b6dd92d authored by Łukasz Nowak's avatar Łukasz Nowak

Apply suggestion to software/kvm/template/check-backup-directory.sh

parent 45c3e4eb
......@@ -14,7 +14,7 @@ trap "rm -fr $tmpfile" EXIT TERM INT
find $directory -type f -name 'FULL*qcow2' -printf '%f\n' > $tmpfile
full_amount=$(wc -l $tmpfile | cut -d ' ' -f 1)
if [ $full_amount -ne 1 ] && [ $full_amount -ne 0 ]; then
if [ $full_amount -gt 1 ]; then
echo "Too many FULL backups"
cat $tmpfile
exit 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment