Submit #2654

[PATCH] fix operator

Added by bsdsx 8 months ago. Updated 8 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:tuxillo% Done:

0%

Category:Other
Target version:3.8.0

Description

---
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

Associated revisions

Revision ae04a094
Added by tuxillo 8 months ago

tools - Fix operator in hammer-backup.sh

Submitted-by: Freddy DISSAUX

History

#1 Updated by tuxillo 8 months ago

  • Category set to Other
  • Status changed from New to Closed
  • Assignee set to tuxillo
  • Target version set to 3.8.0

Pushed in ae04a094c3b8a863f1c726d39f39709be7f6f9b9
Thanks!

Also available in: Atom PDF