Restored missing parameter

* perform_step was not passing the tmpfile used for error processing
pull/46/head
jrwimmer 2021-12-20 21:55:21 -08:00
parent a5d084610f
commit b0c8927aed
No known key found for this signature in database
GPG Key ID: A62B2B67E6233F10
1 changed files with 3 additions and 1 deletions

View File

@ -80,6 +80,8 @@ function check_network {
echo "\nLAN Turtle could not connect to $opkg_baseurl\nVerify the device's internet connection and try again (wget error $wget_returncode)" > $1 echo "\nLAN Turtle could not connect to $opkg_baseurl\nVerify the device's internet connection and try again (wget error $wget_returncode)" > $1
return 1 return 1
fi fi
sleep 3
} }
function install_dependencies { function install_dependencies {
@ -190,7 +192,7 @@ function perform_step {
echo 0 > "$active_tmpfile" echo 0 > "$active_tmpfile"
# Perform the requested step # Perform the requested step
eval "$1" | dialog --progressbox "$2" 14 72 eval "$1" "$active_tmpfile" | dialog --progressbox "$2" 14 72
# Retrieve the last error written to the tmpfile # Retrieve the last error written to the tmpfile
last_return_code=$(cat "$active_tmpfile") last_return_code=$(cat "$active_tmpfile")