aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2017-10-02 16:25:48 +0200
committerGravatar Christian Hesse <mail@eworm.de>2017-10-02 16:25:48 +0200
commit14481233a2337748e6241e390ec8cc4dec11e797 (patch)
tree5ef2c664cdabfe2542e313838a53b6cb3b523e01
parenta938d55749a9386a9f0ba4e2152a5a31f7f9c886 (diff)
downloadpacman-offline-14481233a2337748e6241e390ec8cc4dec11e797.tar.gz
pacman-offline-14481233a2337748e6241e390ec8cc4dec11e797.tar.zst
fix pending update with missing symlink
-rwxr-xr-xbin/pacman-offline2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline
index 79eb1bd..9f73d13 100755
--- a/bin/pacman-offline
+++ b/bin/pacman-offline
@@ -26,7 +26,7 @@ while getopts 'fhy' opt; do
done
# make sure no other update is pending
-if [ "$(readlink '/system-update')" != '/var/cache/pacman/pkg' ]; then
+if [ -e '/system-update' -a "$(readlink '/system-update')" != '/var/cache/pacman/pkg' ]; then
echo 'Another update is pending.' >&2
exit 1
fi