change behaviour to also update on apply

This commit is contained in:
Strix 2023-10-14 22:38:12 +02:00
parent 05595c2e14
commit 4d5e1112aa
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 2 additions and 0 deletions

View file

@ -1,4 +1,5 @@
super_apply() { super_apply() {
pacman -Syyu
pacman -S --needed sudo reflector pacman -S --needed sudo reflector
if ! grep -q "Reflector" /etc/pacman.d/mirrorlist; then if ! grep -q "Reflector" /etc/pacman.d/mirrorlist; then
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak

View file

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
describe="Install stuff on the system!" describe="Install stuff on the system!"
scripts="@distro @self"
super_apply() { super_apply() {
cp files/sudoers /etc/sudoers cp files/sudoers /etc/sudoers