From f1a4381a5ed3cdb4024c1980c0b2fdfe5d3836df Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 13 Nov 2019 12:27:36 +0100 Subject: find-package-differences: check if /mnt/archlinuxewe is mounted --- find-package-differences | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'find-package-differences') 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 -- cgit v1.2.3-70-g09d2