From 41bdf294c20a3903f4a0cf72105f466bf0676291 Mon Sep 17 00:00:00 2001 From: bobslept <38557801+bobslept@users.noreply.github.com> Date: Sat, 28 Oct 2023 03:51:08 +0200 Subject: [PATCH] fix(just): add msg to devmode-on (#624) --- just/custom.just | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/just/custom.just b/just/custom.just index 03f5be9f551..a2f30dd4ec5 100644 --- a/just/custom.just +++ b/just/custom.just @@ -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"