Skip to content

Commit 8e1b1fe

Browse files
authored
fix(just): redirect errors to stdout in update (#273)
cleaner version of 15117ef. This will print it for the user to see and will not mess up the output so jq will be able to parse it
1 parent 15117ef commit 8e1b1fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎system_files/shared/usr/share/ublue-os/just/update.just‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ update:
4040
# https://github.com/bootc-dev/bootc/issues/409
4141
# https://github.com/get-aurora-dev/common/issues/270
4242
# bootc status can might prefix the output from `mount`
43-
STATUS=$(sudo bootc status --json | sed -n '/^{/,$p' | jq ".status")
43+
STATUS=$(sudo bootc status --json 2> /dev/null | jq ".status")
4444

4545
STAGED_INCOMPAT=$(echo "${STATUS}" | jq ".staged.incompatible")
4646
BOOTED_INCOMPAT=$(echo "${STATUS}" | jq ".booted.incompatible")

0 commit comments

Comments
 (0)