From ee1803c73cf27ca8176d9bb2d3ebcf54a67fce00 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:11:32 +0900 Subject: [PATCH] fix: control flow --- dzgui.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dzgui.sh b/dzgui.sh index a8ce9a8..c8bf364 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -442,7 +442,8 @@ migrate_files(){ cp $config_file $config_path/dztuirc.oldapi fi logger INFO "Migrated old API file" - [[ -f $hist_file ]] && rm $hist_file + [[ ! -f $hist_file ]] && return + rm $hist_file logger INFO "Wiped old history file" } stale_symlinks(){