Skip to content

Commit

Permalink
check_power is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham R Pugh committed Mar 10, 2021
1 parent f1854a1 commit 0e5c38b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erase-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ do
--test-run) test_run="yes"
;;
--check-power)
wait_for_power="yes"
check_power="yes"
;;
--power-wait-limit)
shift
Expand Down Expand Up @@ -935,7 +935,7 @@ os_minor_version=$( echo "$os_version" | sed 's|^10\.||' | sed 's|\..*||' )
# check for power and drive space if invoking erase or reinstall options
if [[ $erase == "yes" || $reinstall == "yes" ]]; then
free_space_check
check_power_status
[[ "$check_power" == "yes" ]] && check_power_status
fi

# Look for the installer, download it if it is not present
Expand Down

0 comments on commit 0e5c38b

Please sign in to comment.