Skip to content

Commit

Permalink
Update flatcar-postinst
Browse files Browse the repository at this point in the history
Co-authored-by: Krzesimir Nowak <[email protected]>
  • Loading branch information
pothos and krnowak authored Aug 30, 2023
1 parent 082346c commit 17f1c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flatcar-postinst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ sysext_download() {
rm -f "${target}.tmp"
curl -fsSL --retry-delay 1 --retry 60 --retry-connrefused --retry-max-time 60 --connect-timeout 20 -o "${target}.tmp" "${url}"
if [ "${size}" != "" ] && [ "${hash}" != "" ]; then
if [ "$(stat --printf='%s\n' "${target}.tmp")" != "${size}" ]; then
if [ "$(stat --printf='%s' "${target}.tmp")" != "${size}" ]; then
echo "Size mismatch for ${name}" >&2
return 1 # jump to ret=
fi
Expand Down

0 comments on commit 17f1c54

Please sign in to comment.