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(){