summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-09-25 13:08:13 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-09-25 13:08:13 +0200
commit40e613ef758173632151d7d84e6d57599934932b (patch)
tree9b3b6cdf2c10b82c1fd9a01f31322fb7fd5f3cda
parentdf10bb52910ae614ed9dce88540be7f7058cb1c5 (diff)
downloadpacman-offline-40e613ef758173632151d7d84e6d57599934932b.tar.gz
pacman-offline-40e613ef758173632151d7d84e6d57599934932b.tar.zst
remove symlink early
-rwxr-xr-xsystemd/pacman-offline6
1 files changed, 3 insertions, 3 deletions
diff --git a/systemd/pacman-offline b/systemd/pacman-offline
index 9764666..54e2e03 100755
--- a/systemd/pacman-offline
+++ b/systemd/pacman-offline
@@ -7,11 +7,11 @@ if [ "$(readlink '/system-update')" != '/var/cache/pacman/pkg' ]; then
exit 0
fi
-# install updates
-pacman -Su --noconfirm
-
# remove triggering symlink
rm -f /system-update
+# install updates
+pacman -Su --noconfirm
+
# reboot
systemctl reboot