Skip to content

Commit

Permalink
flatcar-update: Source version.txt to get flatcar version
Browse files Browse the repository at this point in the history
It guards against possible quotes.
  • Loading branch information
krnowak authored Oct 12, 2023
1 parent 591e7a6 commit a4782d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/flatcar-update
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ while true; do
echo " -M, --listen-port-2 <PORT> 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
;;
Expand Down

0 comments on commit a4782d8

Please sign in to comment.