Fix tmp file check

This commit is contained in:
William Wernert
2021-11-02 14:01:21 -04:00
parent e4a77acfe6
commit 7c7c225a41

View File

@@ -356,7 +356,7 @@ if [[ -z $is_airgap ]]; then
kill -9 "$progress_bg_proc" kill -9 "$progress_bg_proc"
wait "$progress_bg_proc" &> /dev/null wait "$progress_bg_proc" &> /dev/null
} | progress '...' } | progress '...'
[[ -f /tmp/setup_tmp_var ]] && preflight_ret=$(cat /tmp/preflight_ret) [[ -f /tmp/preflight_ret ]] && preflight_ret=$(cat /tmp/preflight_ret)
rm /tmp/preflight_ret rm /tmp/preflight_ret
if [[ -n $preflight_ret && $preflight_ret -gt 0 ]] && ! ( whiptail_preflight_err ); then if [[ -n $preflight_ret && $preflight_ret -gt 0 ]] && ! ( whiptail_preflight_err ); then
whiptail_cancel whiptail_cancel