-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[commands] | ||
"Linux AMDGPU Control Application" = "/usr/libexec/topgrade/lact-update" | ||
"Mozilla GNOME Themes" = "/usr/libexec/topgrade/mozilla-gnome-theme-update" | ||
"Third Party CSS Loader Themes" = "/usr/libexec/topgrade/third-party-css-loader-update" |
18 changes: 18 additions & 0 deletions
18
system_files/desktop/shared/usr/libexec/topgrade/lact-update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/bash | ||
shopt -s nullglob | ||
|
||
echo "Looking for updates..." | ||
|
||
if [[ $(rpm -qa | grep lact) ]]; then | ||
LACT_VERSION=$(curl -s https://api.github.com/repos/ilya-zlobintsev/LACT/releases/latest | jq -r '.tag_name | ltrimstr("v")') | ||
if [[ ! $(rpm-ostree status | grep lact | grep $LACT_VERSION) ]]; 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..." | ||
/usr/bin/ujust install-lact | ||
echo "Update complete" | ||
fi | ||
else | ||
echo "LACT not installed, skipping." | ||
fi | ||
|
||
exit 0 |