Skip to content

Commit

Permalink
write output
Browse files Browse the repository at this point in the history
  • Loading branch information
CodaBool committed Apr 24, 2024
1 parent b2591c1 commit fc9fc4a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pages/blog/32.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -334,15 +334,18 @@ function write_versions() {
# move previous to a backup
mv $BACKUP_LOCATION "$BACKUP_LOCATION.old"

echo $(date) >> $BACKUP_LOCATION
echo -e "====== Pre-update ======" >> $BACKUP_LOCATION
write_versions

# update keyring
sudo pacman -Sy archlinux-keyring --noconfirm && sudo pacman -Su --noconfirm

# update packages
paru -Syu --skipreview --removemake --nocleanafter --pgpfetch --noconfirm
echo -e "\n====== updating official and AUR packages ======\n" >> $BACKUP_LOCATION
paru -Syu --skipreview --removemake --nocleanafter --pgpfetch --noconfirm >> $BACKUP_LOCATION

echo -e "\n====== updating flatpaks ======\n" >> $BACKUP_LOCATION
/usr/bin/flatpak update --noninteractive --assumeyes

echo -e "\n\n====== Post-update ======" >> $BACKUP_LOCATION
Expand Down

0 comments on commit fc9fc4a

Please sign in to comment.