diff options
author | Peter Palfrader <peter@palfrader.org> | 2015-02-18 16:09:38 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2015-02-18 16:11:42 +0100 |
commit | ec83b035446510ca814150e7fab7dd9d94d4f56a (patch) | |
tree | 92cdce6c4da98bf3dbaa69eff2378e5772505d72 | |
parent | c664a4539ecdad9b7cfa1ddb4d0768bd71b69ca4 (diff) |
Only run check_installed on debian-systems
-rwxr-xr-x | install-VM-grongo | 8 |
1 files changed, 7 insertions, 1 deletions
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+=(":") |