2020-01-05 22:26:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
2020-07-15 20:54:43 +00:00
|
|
|
[[ $(find . -name '*.tar.zst' | wc -l) -gt 0 ]] || {
|
|
|
|
echo "No zst archives found, nothing to worry"
|
2020-01-05 22:26:10 +00:00
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
|
|
|
[[ $(find . -name '*.tar.xz' | wc -l) -gt 0 ]] && {
|
2020-07-15 20:54:43 +00:00
|
|
|
echo "Both XZ and zst archives found, pay attention!"
|
2020-07-15 22:17:27 +00:00
|
|
|
} || true
|
2020-01-05 22:26:10 +00:00
|
|
|
|
2020-07-15 20:54:43 +00:00
|
|
|
[[ $(find . -name '*.db.tar.xz' | wc -l) -gt 0 ]] && [[ $(find . -name '*.db.tar.zst' | wc -l) -gt 0 ]] && {
|
|
|
|
echo "Found XZ and zst databases! Check this!"
|
2020-01-05 22:26:10 +00:00
|
|
|
exit 1
|
2020-07-15 22:17:27 +00:00
|
|
|
} || true
|