From: Adam Dickmeiss Date: Mon, 29 Jun 2015 13:08:12 +0000 (+0000) Subject: Add check for lxc-attach X-Git-Url: http://git.indexdata.com/?p=git-tools-moved-to-github.git;a=commitdiff_plain;h=62940f2aa7112e76b06a04ce3a91d2b5a6c8bdb6 Add check for lxc-attach --- diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index 8e07f24..8c76b9e 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -40,7 +40,10 @@ done if test "$do_help" = "yes"; then usage 1 1>&2 fi - +if test ! -x /usr/bin/lxc-attach; then + echo "No lxc-attach. Probably not running on mochi!!" + exit 1 +fi if test -f IDMETA; then . ./IDMETA else