Commit 54f9b02 1 parent 591e7a6 commit 54f9b02 Copy full SHA for 54f9b02
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -642,7 +642,7 @@ function prep_url(){
642
642
# if the version is " current" , resolve the actual version number
643
643
if [[ " ${VERSION_ID} " == " current" ]]; then
644
644
local VERSIONTXT_URL=" ${BASE_URL} /${VERSION_ID} /version.txt"
645
- VERSION_ID=$( wget ${WGET_ARGS} -qO- " ${VERSIONTXT_URL} " | sed -n ' s/^ FLATCAR_VERSION=//p ' )
645
+ VERSION_ID=$( source <( wget ${WGET_ARGS} -qO- " ${VERSIONTXT_URL} " ) ; echo " ${ FLATCAR_VERSION} " )
646
646
if [[ -z " ${VERSION_ID} " ]]; then
647
647
echo " $0 : version.txt unavailable: ${VERSIONTXT_URL} " >&2
648
648
exit 1
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ while true; do
38
38
echo " -M, --listen-port-2 <PORT> Overwrites standard listen port 9091"
39
39
echo
40
40
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}" )'
42
42
echo " $( basename " ${0} " ) -V \$ VER -A"
43
43
exit 1
44
44
;;
You can’t perform that action at this time.
0 commit comments