summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/pacman-offline6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline
index 0b21b09..8f86868 100755
--- a/bin/pacman-offline
+++ b/bin/pacman-offline
@@ -21,6 +21,12 @@ while getopts 'hy' opt; do
esac
done
+# make sure no other update is pending
+if [ "$(readlink '/system-update')" != '/var/cache/pacman/pkg' ]; then
+ echo 'Another update is pending.' >&2
+ exit 1
+fi
+
# remove the symlink for now, will be recreated it later
rm -f /system-update