From: Antonio Huete Jimenez Date: Thu, 13 Mar 2014 09:43:30 +0000 (+0100) Subject: tools - Fix operator in hammer-backup.sh X-Git-Tag: v3.9.0~339 X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff_plain/ae04a094c3b8a863f1c726d39f39709be7f6f9b9 tools - Fix operator in hammer-backup.sh Submitted-by: Freddy DISSAUX --- diff --git a/tools/tools/hammer-backup/hammer-backup.sh b/tools/tools/hammer-backup/hammer-backup.sh index 8fe0b2f756..b90df0c597 100755 --- a/tools/tools/hammer-backup/hammer-backup.sh +++ b/tools/tools/hammer-backup/hammer-backup.sh @@ -469,13 +469,13 @@ tmp=$(echo ${pfs_path} | tr '/' '_') output_file="${backup_dir}/${timestamp}${tmp}" # List backups if needed -if [ ${list_opt} == 1 ]; then +if [ ${list_opt} -eq 1 ]; then info "Listing backups." list_backups fi # Checksum test -if [ ${checksum_opt} == 1 ]; then +if [ ${checksum_opt} -eq 1 ]; then info "Checksum test for all backup files." checksum_backups fi