File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -528,17 +528,24 @@ function channel_version() (
528
528
# traps.
529
529
trap ' rm "${tmp_version_txt}"' EXIT
530
530
531
+ curl_to_stdout " https://${channel} .release.flatcar-linux.net/${board} /current/version.txt" > " ${tmp_version_txt} "
532
+ source " ${tmp_version_txt} "
533
+ echo " ${FLATCAR_VERSION} "
534
+ )
535
+ # --
536
+
537
+ function curl_to_stdout() {
538
+ local url=${1} ; shift
539
+
531
540
curl \
532
541
-fsSL \
533
542
--retry-delay 1 \
534
543
--retry 60 \
535
544
--retry-connrefused \
536
545
--retry-max-time 60 \
537
546
--connect-timeout 20 \
538
- " https://${channel} .release.flatcar-linux.net/${board} /current/version.txt" > " ${tmp_version_txt} "
539
- source " ${tmp_version_txt} "
540
- echo " ${FLATCAR_VERSION} "
541
- )
547
+ " ${url} "
548
+ }
542
549
# --
543
550
544
551
# Prints some reports using scripts from the passed path to
You can’t perform that action at this time.
0 commit comments