diff options
author | Christian Hesse <mail@eworm.de> | 2024-05-29 09:12:13 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-05-29 09:23:49 +0200 |
commit | 2f77fb74fb8a65b9554e45bca43ab8abfdab583a (patch) | |
tree | 023909bfd8bdbc94707aa19a307a6723baed1315 /systemd | |
parent | 4599463573b9799baa0ab4b4763126163f8cf63a (diff) | |
download | pacman-offline-2f77fb74fb8a65b9554e45bca43ab8abfdab583a.tar.gz pacman-offline-2f77fb74fb8a65b9554e45bca43ab8abfdab583a.tar.zst |
remove files at once
Diffstat (limited to 'systemd')
-rwxr-xr-x | systemd/pacman-offline | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/systemd/pacman-offline b/systemd/pacman-offline index ca14ba2..9bae2ee 100755 --- a/systemd/pacman-offline +++ b/systemd/pacman-offline @@ -20,9 +20,10 @@ trap finish EXIT sed '/^Include *= *\/etc\/pacman\.d\/offline\.conf$/s|^|#|' < /etc/pacman.conf > /run/pacman.conf # remove triggering symlink and reboot & poweroff override -rm -f /system-update -rm -f /run/systemd/system/systemd-poweroff.service -rm -f /run/systemd/system/systemd-reboot.service +rm --force \ + /system-update \ + /run/systemd/system/systemd-poweroff.service \ + /run/systemd/system/systemd-reboot.service # install updates if [ "$(pacman --sync --print --needed archlinux-keyring | wc -l)" -gt 0 ]; then |