Fixed postrun_action ping loop
This commit is contained in:
@@ -728,10 +728,13 @@ postrun_action() {
|
||||
|
||||
gum confirm "➡️ Select 'yes' once the machine rebooted and you unlocked the disks." || { echo -e "\n\n❌ Aborting as requested."; exit 1; }
|
||||
|
||||
FOUND="false"
|
||||
i="0"
|
||||
while FOUND="false"; do
|
||||
if ping -c1 -W1 $HOME_SERVER_IP >/dev/null 2>&1; then
|
||||
FOUND="true"
|
||||
exit 0
|
||||
else
|
||||
(i++)
|
||||
if [[ "\${i}" -gt 150 ]]; then
|
||||
echo -e "\n\n❌ Could not connect to the server after 150 retries. \
|
||||
|
||||
Reference in New Issue
Block a user