1
0
miroir de https://github.com/angristan/openvpn-install.git synchronisé 2026-01-08 17:57:05 +01:00

Fix SC2086: Double quote to prevent globbing and word splitting

Cette révision appartient à :
Stanislas Lange
2025-03-10 10:22:05 +01:00
Parent 6d66b630f6
révision 502209283d

Voir le fichier

@@ -77,7 +77,7 @@ function checkOS() {
if [[ $ID == "amzn" ]]; then if [[ $ID == "amzn" ]]; then
if [[ $VERSION_ID == "2" ]]; then if [[ $VERSION_ID == "2" ]]; then
OS="amzn" 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" OS="amzn2023"
else else
echo "⚠️ Your version of Amazon Linux is not supported." echo "⚠️ Your version of Amazon Linux is not supported."