Skip to content
Merged
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
3 changes: 2 additions & 1 deletion scripts/release/status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ if ! test -f "$info"; then
fi

sha=$(jq -r '.source_head // empty' "$info")
dirty=$(jq -r '.dirty // .source_dirty // "unknown"' "$info")
# Not `//`: jq treats false as missing there, which hid "dirty": false.
dirty=$(jq -r 'if has("dirty") then .dirty elif has("source_dirty") then .source_dirty else "unknown" end' "$info")
echo "commit: $sha (dirty: $dirty)"
if test "$dirty" != false; then
echo "drift: DIRTY (running code is not a committed revision)"
Expand Down
Loading