From e08e37a31f702bc098df77c07cb5715dbdaf0f2c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:54 -0400 Subject: [PATCH] Verify that SSH keys URL is valid --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index 1fe9217..9b83faa 100755 --- a/install.sh +++ b/install.sh @@ -137,6 +137,14 @@ if [[ -z ${target_keys_url} ]]; then echo "The specified passwords do not match or are empty." fi 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 echo