Skip to content

Commit

Permalink
fix(just): add msg to devmode-on (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslept authored Oct 28, 2023
1 parent 779b1f6 commit 41bdf29
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ devmode-off:
devmode-on:
#!/usr/bin/env bash
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')

if grep -q "/var/ublue-os/image" <<< $CURRENT_IMAGE
then
echo ""
echo "Before we can switch to the Bluefin Developer Experience"
echo "the current system needs an update. Please run 'just update'"
echo "and reboot your system when the update is finished."
exit
fi

if grep -q "bluefin-dx" <<< $CURRENT_IMAGE
then
echo "You are already on a developer image"
Expand Down

0 comments on commit 41bdf29

Please sign in to comment.