slight optimizations #4
@ -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
|
||||
|
||||
|
2
makefile
2
makefile
@ -1,4 +1,4 @@
|
||||
VER = "v1.1"
|
||||
VER = "v1.2"
|
||||
|
||||
install:
|
||||
@echo "==> Installing update $(VER)..."
|
||||
|
6
update
6
update
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user