From 502209283d802a31e07d5a5f6965bdb823dc1e95 Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Mon, 10 Mar 2025 10:22:05 +0100 Subject: [PATCH] Fix SC2086: Double quote to prevent globbing and word splitting --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."