From ec83b035446510ca814150e7fab7dd9d94d4f56a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 18 Feb 2015 16:09:38 +0100 Subject: Only run check_installed on debian-systems --- install-VM-grongo | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'install-VM-grongo') diff --git a/install-VM-grongo b/install-VM-grongo index ef01edd..d74ed57 100755 --- a/install-VM-grongo +++ b/install-VM-grongo @@ -67,7 +67,13 @@ do_cleanup() { echo "done." } -check_installed debootstrap debian-archive-keyring kpartx +if [ -e /etc/debian_version ]; then + check_installed debootstrap debian-archive-keyring kpartx +else + test -e `which debootstrap >/dev/null 2>&1` || echo "W: could not find debootstrap binary" + test -e `which kpartx >/dev/null 2>&1` || echo "W: could not find kpartx binary" + test -e $KEYRING || echo "W: could not find keyring in $KEYRING" +fi declare -a cleanup cleanup+=(":") -- cgit v1.2.3