From 477be8a589172913c235172366ea817fe8bfd937 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Wed, 29 Aug 2018 12:16:32 +0100 Subject: [PATCH] Different compare --- src/freedombone-installer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-installer b/src/freedombone-installer index 6e91cae8a..7fecf1d80 100755 --- a/src/freedombone-installer +++ b/src/freedombone-installer @@ -1032,8 +1032,8 @@ function initiate_automatic_backup { fi curr_hour=$(date +%H) - if ((curr_hour=backup_hour)); then - if ((webadmin_prev_hour!=backup_hour)); then + if [ "$curr_hour" -eq "$backup_hour" ]; then + if [ "$webadmin_prev_hour" -ne "$backup_hour" ]; then touch "$backup_file" echo $"Backup initiated $(date)" >> "$webadmin_install_dir/autobackup.log" running_auto_backup=1 -- GitLab