From 4ec6692f21c9b6a9af07eda52500e97b04280f69 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Mon, 1 Sep 2014 07:29:34 -0400 Subject: [PATCH] showing the mail-in-a-box version might fail if git isn't actually installed The user might acquire the sources via some means other than a git clone. On Vagrant, the files come in via Vagrant. So test for git before running `git describe`. --- setup/start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/start.sh b/setup/start.sh index 214190ad..aba6a1e3 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -53,7 +53,9 @@ fi if [ "$PRIVATE_IPV6" != "$PUBLIC_IPV6" ]; then echo "Private IPv6 Address: $PRIVATE_IPV6" fi -echo "Mail-in-a-Box Version: " $(git describe) +if [ -f /usr/bin/git ]; then + echo "Mail-in-a-Box Version: " $(git describe) +fi echo # Run some network checks to make sure setup on this machine makes sense.