Skip to content

Commit

Permalink
fix: Use override replace when upgrading lact with topgrade
Browse files Browse the repository at this point in the history
feat(deck): Update Handheld-Controller-Glyphs theme with topgrade
  • Loading branch information
KyleGospo committed May 3, 2024
1 parent 41f3c4b commit 27a7db1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions system_files/desktop/shared/usr/libexec/topgrade/lact-update
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ if [[ $(rpm -qa | grep lact) ]]; then
# This will check if *any* rpm-ostree pin has the newest version, so we don't update needlessly if a user just needs to reboot or is trying an older pin.
echo "Found upstream version v$LACT_VERSION, updating..."
ublue-update --wait
rpm-ostree remove -y $(rpm -qa | grep lact)
if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then
echo 'Installing LACT Libadwaita...'
wget \
Expand All @@ -26,7 +25,7 @@ if [[ $(rpm -qa | grep lact) ]]; then
jq -r ".assets[] | select(.name | test(\"lact-[0-9].*fedora-$(rpm -E %fedora)\")) | .browser_download_url") \
-O /tmp/lact.rpm
fi
rpm-ostree install -y /tmp/lact.rpm
rpm-ostree override replace /tmp/lact.rpm
echo "Update complete"
fi
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,12 @@ if [ -d "$HOME/homebrew/themes/PS5-to-Xbox-glyphs/.git" ]; then
echo "Update complete."
fi

# Handheld Controller Glyphs
if [ -d "$HOME/homebrew/themes/Handheld-Controller-Glyphs/.git" ]; then
cd "$HOME/homebrew/themes/Handheld-Controller-Glyphs"
echo "Handheld-Controller-Glyphs theme found, pulling latest with git."
git pull
echo "Update complete."
fi

exit 0

0 comments on commit 27a7db1

Please sign in to comment.