tools - Fix operator in hammer-backup.sh
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 13 Mar 2014 09:43:30 +0000 (10:43 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 13 Mar 2014 09:43:45 +0000 (10:43 +0100)
Submitted-by: Freddy DISSAUX
tools/tools/hammer-backup/hammer-backup.sh

index 8fe0b2f..b90df0c 100755 (executable)
@@ -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