Verify that SSH keys URL is valid

This commit is contained in:
Joshua Boniface 2019-06-16 16:55:58 -04:00
parent 42eb637342
commit 29e1412f6f
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