diff options
-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 |