Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add guards to ujust update #2187

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions system_files/shared/usr/share/ublue-os/just/10-update.just
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@ alias upgrade := update
# Update system, flatpaks, and containers all at once
update:
#!/usr/bin/bash
# rpm-ostree used due to bootc upgrade not supporting local layered packages
rpm-ostree upgrade
flatpak update -y
brew update
# Updates system Flatpaks
if flatpak remotes | grep -q system; then
flatpak update -y
fi
# Update user Flatpaks
if flatpak remotes | grep -q user; then
flatpak update --user -y
fi
# Guard Brew if the user does not own brew/doesn't exist
if [[ -O /var/home/linuxbrew/.linuxbrew/bin/brew ]]; then
# Upgrade will run brew update if needed
/var/home/linuxbrew/.linuxbrew/bin/brew upgrade
fi

alias auto-update := toggle-updates

Expand Down
Loading