mirror of https://github.com/tteck/Proxmox.git
add option to continue upon Internet NOT Connected (#727)
This commit is contained in:
parent
5543667bd8
commit
40c63e2cd3
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -63,7 +63,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -63,7 +63,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -61,7 +61,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -63,7 +63,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
|
@ -62,7 +62,13 @@ set +e
|
||||||
alias die=''
|
alias die=''
|
||||||
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
if nc -zw1 8.8.8.8 443; then msg_ok "Internet Connected"; else
|
||||||
msg_error "Internet NOT Connected"
|
msg_error "Internet NOT Connected"
|
||||||
|
read -r -p "Would you like to continue anyway? <y/N> " prompt
|
||||||
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
|
||||||
|
echo -e " ⚠️ ${RD}Expect Issues Without Internet${CL}"
|
||||||
|
else
|
||||||
|
echo -e " 🖧 Check Network Settings"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
RESOLVEDIP=$(nslookup "github.com" | awk -F':' '/^Address: / { matched = 1 } matched { print $2}' | xargs)
|
||||||
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
if [[ -z "$RESOLVEDIP" ]]; then msg_error "DNS Lookup Failure"; else msg_ok "DNS Resolved github.com to $RESOLVEDIP"; fi
|
||||||
|
|
Loading…
Reference in New Issue