mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-06 09:39:58 +00:00
fix: Create git repository if it doesn't already exist in Firefox/Thunderbird GNOME theme updater
This commit is contained in:
parent
c5a69faba7
commit
b123e28d16
@ -4,21 +4,33 @@ shopt -s nullglob
|
|||||||
echo "Looking for updates..."
|
echo "Looking for updates..."
|
||||||
|
|
||||||
# Flatpak Firefox
|
# Flatpak Firefox
|
||||||
for firefox_gnome_theme in "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox/"*".default"*"/chrome/firefox-gnome-theme/"; do
|
for firefox_gnome_theme in "$HOME/.var/app/org.mozilla.firefox/.mozilla/firefox/"*".default"*"/chrome/firefox-gnome-theme"; do
|
||||||
if [ -d "$firefox_gnome_theme" ]; then
|
if [ -d "$firefox_gnome_theme" ]; then
|
||||||
|
if [ ! -d "$firefox_gnome_theme/.git" ]; then
|
||||||
|
echo "Firefox theme found, but not a git repository. Correcting."
|
||||||
|
rm -rf "$firefox_gnome_theme"
|
||||||
|
git clone https://github.com/rafaelmardojai/firefox-gnome-theme.git --single-branch "$firefox_gnome_theme"
|
||||||
|
else
|
||||||
echo "Firefox theme found, pulling latest with git"
|
echo "Firefox theme found, pulling latest with git"
|
||||||
cd "$firefox_gnome_theme"
|
cd "$firefox_gnome_theme"
|
||||||
git pull
|
git pull
|
||||||
|
fi
|
||||||
echo "Update complete"
|
echo "Update complete"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Flatpak Thunderbird
|
# Flatpak Thunderbird
|
||||||
for thunderbird_gnome_theme in "$HOME/.var/app/org.mozilla.Thunderbird/.thunderbird/"*".default"*"/chrome/thunderbird-gnome-theme/"; do
|
for thunderbird_gnome_theme in "$HOME/.var/app/org.mozilla.Thunderbird/.thunderbird/"*".default"*"/chrome/thunderbird-gnome-theme"; do
|
||||||
if [ -d "$thunderbird_gnome_theme" ]; then
|
if [ -d "$thunderbird_gnome_theme" ]; then
|
||||||
|
if [ ! -d "$thunderbird_gnome_theme/.git" ]; then
|
||||||
|
echo "Thunderbird theme found, but not a git repository. Correcting."
|
||||||
|
rm -rf "$thunderbird_gnome_theme"
|
||||||
|
git clone https://github.com/rafaelmardojai/thunderbird-gnome-theme.git --single-branch "$thunderbird_gnome_theme"
|
||||||
|
else
|
||||||
echo "Thunderbird theme found, pulling latest with git"
|
echo "Thunderbird theme found, pulling latest with git"
|
||||||
cd "$thunderbird_gnome_theme"
|
cd "$thunderbird_gnome_theme"
|
||||||
git pull
|
git pull
|
||||||
|
fi
|
||||||
echo "Update complete"
|
echo "Update complete"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user