summaryrefslogtreecommitdiff
path: root/find-package-differences
diff options
context:
space:
mode:
Diffstat (limited to 'find-package-differences')
-rwxr-xr-xfind-package-differences6
1 files changed, 6 insertions, 0 deletions
diff --git a/find-package-differences b/find-package-differences
index a6c9a964f..fb5a48f84 100755
--- a/find-package-differences
+++ b/find-package-differences
@@ -58,6 +58,12 @@ if [ $# -ne 0 ]; then
exit 1
fi
+if ! mountpoint -q /mnt/archlinuxewe \
+&& ! ls /mnt/archlinuxewe | grep -qF ''; then
+ >&2 printf '/mnt/archlinuxewe is empty\n'
+ exit 1
+fi
+
tmp_dir=$(mktemp -d)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT