From a4782d8143eda39333c6b004b76f5737683885e7 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 12 Oct 2023 15:06:08 +0200 Subject: [PATCH] flatcar-update: Source version.txt to get flatcar version It guards against possible quotes. --- bin/flatcar-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/flatcar-update b/bin/flatcar-update index d1ca303..4fab4c5 100755 --- a/bin/flatcar-update +++ b/bin/flatcar-update @@ -38,7 +38,7 @@ while true; do echo " -M, --listen-port-2 Overwrites standard listen port 9091" echo echo "Example for updating to the latest Stable release and disabling automatic updates afterwards:" - echo ' VER=$(curl -fsSL https://stable.release.flatcar-linux.net/amd64-usr/current/version.txt | grep FLATCAR_VERSION= | cut -d = -f 2)' + echo ' VER=$(source <(curl -fsSL https://stable.release.flatcar-linux.net/amd64-usr/current/version.txt); echo "${FLATCAR_VERSION}")' echo " $(basename "${0}") -V \$VER -A" exit 1 ;;