From fcb72155902e072885a1ea9e94c37ac70929b234 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Thu, 30 Aug 2018 10:37:06 +0100
Subject: [PATCH] Clear screen before backup or restore

---
 src/freedombone-controlpanel | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel
index d42e7304c..c38e306d7 100755
--- a/src/freedombone-controlpanel
+++ b/src/freedombone-controlpanel
@@ -918,6 +918,7 @@ function backup_data {
             rm "$data"
             if [ "$backup_password" ]; then
                 if [ ${#backup_password} -ge 8 ]; then
+                    clear
                     # shellcheck disable=SC2086
                     if /usr/bin/timeout $BACKUP_TIMEOUT_SEC /usr/local/bin/${PROJECT_NAME}-backup-local simple "$backup_password"; then
                         dialog --title $"Backup" \
@@ -1098,6 +1099,7 @@ function restore_data {
             rm "$data"
             if [ "$backup_password" ]; then
                 if [ ${#backup_password} -ge 8 ]; then
+                    clear
                     # shellcheck disable=SC2086
                     if /usr/bin/timeout $BACKUP_TIMEOUT_SEC /usr/local/bin/${PROJECT_NAME}-restore-local simple "$backup_password"; then
                         dialog --title $"Restore" \
-- 
GitLab