[DragonFlyBSD - Submit #2654] (New) [PATCH] fix operator

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Mar 12 14:14:33 PDT 2014


Issue #2654 has been reported by bsdsx.

----------------------------------------
Submit #2654: [PATCH] fix operator
http://bugs.dragonflybsd.org/issues/2654

* Author: bsdsx
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
---
 tools/tools/hammer-backup/hammer-backup.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/tools/hammer-backup/hammer-backup.sh b/tools/tools/hammer-backup/hammer-backup.sh
index cd56b2e..e1cc7d5 100755
--- a/tools/tools/hammer-backup/hammer-backup.sh
+++ b/tools/tools/hammer-backup/hammer-backup.sh
@@ -468,13 +468,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
-- 
1.8.5.2



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list