Skip to content

Commit a4782d8

Browse files
authored
flatcar-update: Source version.txt to get flatcar version
It guards against possible quotes.
1 parent 591e7a6 commit a4782d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/flatcar-update

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ while true; do
3838
echo " -M, --listen-port-2 <PORT> Overwrites standard listen port 9091"
3939
echo
4040
echo "Example for updating to the latest Stable release and disabling automatic updates afterwards:"
41-
echo ' VER=$(curl -fsSL https://stable.release.flatcar-linux.net/amd64-usr/current/version.txt | grep FLATCAR_VERSION= | cut -d = -f 2)'
41+
echo ' VER=$(source <(curl -fsSL https://stable.release.flatcar-linux.net/amd64-usr/current/version.txt); echo "${FLATCAR_VERSION}")'
4242
echo " $(basename "${0}") -V \$VER -A"
4343
exit 1
4444
;;

0 commit comments

Comments
 (0)