aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-05-29 09:12:13 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-05-29 09:23:49 +0200
commit2f77fb74fb8a65b9554e45bca43ab8abfdab583a (patch)
tree023909bfd8bdbc94707aa19a307a6723baed1315
parent4599463573b9799baa0ab4b4763126163f8cf63a (diff)
downloadpacman-offline-2f77fb74fb8a65b9554e45bca43ab8abfdab583a.tar.gz
pacman-offline-2f77fb74fb8a65b9554e45bca43ab8abfdab583a.tar.zst
remove files at once
-rwxr-xr-xsystemd/pacman-offline7
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