Skip to content

Commit

Permalink
fix(ujust): dx detection on nvidia/surface/others (ublue-os#1968)
Browse files Browse the repository at this point in the history
tulilirockz authored Nov 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c5f467c commit 0b2141c
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion just/bluefin-apps.just
Original file line number Diff line number Diff line change
@@ -110,7 +110,7 @@ install-incus:
#!/usr/bin/env bash
source /usr/lib/ujust/ujust.sh
CURRENT_IMAGE=$(rpm-ostree status -b --json | jq -r '.deployments[0]."container-image-reference"')
if ! grep -e "-dx:" <<< $CURRENT_IMAGE ; then
if ! grep -e "-dx" <<< $CURRENT_IMAGE ; then
echo "Developer mode is currently ${b}${red}Disabled${n}."
echo "Run \"just devmode\" to turn on Developer mode."
exit
4 changes: 2 additions & 2 deletions just/bluefin-system.just
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ toggle-devmode:
EOF
exit
fi
if /bin/grep -q "\-dx:" <<< $CURRENT_IMAGE ; then
if /bin/grep -q "\-dx" <<< $CURRENT_IMAGE ; then
CURRENT_STATE="enabled"
else
CURRENT_STATE="disabled"
@@ -68,7 +68,7 @@ toggle-devmode:
fi
echo "Rebasing to a non developer image"
# Remove -dx suffix from image, specifies ":" to mark the end of the image name
NEW_IMAGE=$(sed "s/\-dx:/:/" <<< $CURRENT_IMAGE)
NEW_IMAGE=$(sed "s/\-dx//" <<< $CURRENT_IMAGE)
rpm-ostree rebase $NEW_IMAGE
fi

0 comments on commit 0b2141c

Please sign in to comment.