diff --git a/openvpn-install.sh b/openvpn-install.sh index 17f63c7..bf3171c 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -77,7 +77,7 @@ function checkOS() { if [[ $ID == "amzn" ]]; then if [[ $VERSION_ID == "2" ]]; then OS="amzn" - elif [[ "$(echo $PRETTY_NAME | cut -c 1-18)" == "Amazon Linux 2023." ]] && [[ "$(echo $PRETTY_NAME | cut -c 19)" -ge 6 ]]; then + elif [[ "$(echo "$PRETTY_NAME" | cut -c 1-18)" == "Amazon Linux 2023." ]] && [[ "$(echo "$PRETTY_NAME" | cut -c 19)" -ge 6 ]]; then OS="amzn2023" else echo "⚠️ Your version of Amazon Linux is not supported."