Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/flatcar-install
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ function prep_url(){
# if the version is "current", resolve the actual version number
if [[ "${VERSION_ID}" == "current" ]]; then
local VERSIONTXT_URL="${BASE_URL}/${VERSION_ID}/version.txt"
VERSION_ID=$(wget ${WGET_ARGS} -qO- "${VERSIONTXT_URL}" | sed -n 's/^FLATCAR_VERSION=//p')
VERSION_ID=$(source <(wget ${WGET_ARGS} -qO- "${VERSIONTXT_URL}"); echo "${FLATCAR_VERSION}")
if [[ -z "${VERSION_ID}" ]]; then
echo "$0: version.txt unavailable: ${VERSIONTXT_URL}" >&2
exit 1
Expand Down
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