From 2f77fb74fb8a65b9554e45bca43ab8abfdab583a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 29 May 2024 09:12:13 +0200 Subject: remove files at once --- systemd/pacman-offline | 7 ++++--- 1 file 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 -- cgit v1.2.3-70-g09d2