From 05e178b38beb3e132d2c7c05ae833f19c905f1b4 Mon Sep 17 00:00:00 2001 From: TheOnePath Date: Mon, 21 Jun 2021 15:54:50 +0100 Subject: [PATCH] Fixed bug with testing variable --- updater | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater b/updater index 92a3c57..7914235 100755 --- a/updater +++ b/updater @@ -92,7 +92,7 @@ function clean_up { echo >> "$runtime_dir/logs/updater.log" cat "$logs_dir/updater.log" >> "$logs_dir/updater.history" - [[ $test_run -eq 0 ]] && cat "$logs_dir/updater.log" + [[ -e $test_run ]] && cat "$logs_dir/updater.log" } function check_restoration {