Verify that SSH keys URL is valid

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:54 -04:00
parent 4753050f7f
commit e08e37a31f
1 changed files with 8 additions and 0 deletions

View File

@ -137,6 +137,14 @@ if [[ -z ${target_keys_url} ]]; then
echo "The specified passwords do not match or are empty." echo "The specified passwords do not match or are empty."
fi fi
done done
else
while ! wget -O /dev/null ${target_keys_url} &>/dev/null; do
echo
echo "Please enter a valid SSH keys URL."
echo
echo -n "> "
read target_keys_url
done
fi fi
echo echo