[ 67s] ++ systemd-repart --json=short /work/out/nest-octopus_5.2.raw
[ 67s] ++ jq -r '.[] | select(.type == "esp") | .offset'
[ 67s] No machine ID set, using randomized partition UUIDs.
[ 67s] No changes.
[ 67s] + offset=
[ 67s] + '[' '' = null ']'
unzstd --force "${ddi}"
fi
offset="$(systemd-repart --json=short "${ddi%.zst}" | jq -r '.[] | select(.type == "esp") | .offset')"
- if [ "$offset" = "null" ]; then
+ if [ -z "$offset" ] || [ "$offset" = "null" ]; then
if [[ $ddi == *.zst ]]; then
rm -f "${ddi%.zst}"
fi