diff options
author | Christian Hesse <mail@eworm.de> | 2017-10-02 16:25:48 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-10-02 16:25:48 +0200 |
commit | 14481233a2337748e6241e390ec8cc4dec11e797 (patch) | |
tree | 5ef2c664cdabfe2542e313838a53b6cb3b523e01 /bin | |
parent | a938d55749a9386a9f0ba4e2152a5a31f7f9c886 (diff) | |
download | pacman-offline-14481233a2337748e6241e390ec8cc4dec11e797.tar.gz pacman-offline-14481233a2337748e6241e390ec8cc4dec11e797.tar.zst |
fix pending update with missing symlink
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pacman-offline | 2 |
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 |