From 14481233a2337748e6241e390ec8cc4dec11e797 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 2 Oct 2017 16:25:48 +0200 Subject: fix pending update with missing symlink --- bin/pacman-offline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2