slight optimizations #4

Merged
AustrianToast merged 2 commits from dev into main 2023-01-29 02:16:13 +01:00
3 changed files with 5 additions and 5 deletions
Showing only changes of commit 2aca92f351 - Show all commits

View File

@ -6,7 +6,7 @@ Update script written in bash for Arch. Keeps all your pacman and aur packages a
Needed dependencies
```bash
pacman -S zip pacutils
pacman -S zip
```
## Installation

View File

@ -1,4 +1,4 @@
VER = "v1.1"
VER = "v1.2"
install:
@echo "==> Installing update $(VER)..."

6
update
View File

@ -1,7 +1,7 @@
#!/bin/bash
# updates via an aur-helper and flatpak with flags
# version 1.1
# version 1.2
IGreen="\033[0;92m" # Green
NC="\033[0m" # Text Reset
@ -26,7 +26,7 @@ Help() {
# creates package lists, moves them into a zip, adds some other files to the zip and backups the pacman database in the form of a tar
# it then rsyncs the zip and the tar to the backup location
before_backup() {
paclog-pkglist > pacman-pre.txt
pacman -Q > pacman-pre.txt
flatpak list > flatpak-pre.txt
zip --quiet --move before-backup.zip.new pacman-pre.txt flatpak-pre.txt
zip --quiet --grow before-backup.zip.new /etc/fstab /etc/makepkg.conf
@ -46,7 +46,7 @@ after_backup() {
# updates using aur-helper
update_with_aur_helper() {
"${aur_helper}"
paclog-pkglist > pacman-after.txt
pacman -Q > pacman-after.txt
}
# updates using flatpak update