summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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