Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
set -o verbose
set -o errexit
if [ "$OS" = "Windows_NT" ]; then
# Windows-only
#
echo "Checking for IPV6 support"
ipconfig | grep -i ipv6
echo "Found IPV6 support"
PYTHON=c:/Python27/python
echo "Checking for scons"
which scons.bat
echo "Found scons"
else
# Non-windows
#
echo "Checking for IPV6 support"
/sbin/ifconfig -a | grep inet6
echo "Found IPV6 support"
PYTHON=python
echo "Checking for kinit"
which kinit
echo "Found kinit"
echo "Checking for scons"
which scons
echo "Found scons"
fi
echo "Checking for GO"
go version
echo "Checking for pymongo"
echo import pymongo | "$PYTHON"
echo "Checking for git"
which git
echo "Found git"
echo "Checking for snmpwalk"
which snmpwalk
echo "Found snmpwalk"
echo "Checking for mongo-orchestration"
which mongo-orchestration
echo "Found mongo-orchestration"
echo "Checking for m4"
which m4
echo "Found m4"
echo "Checking for patch"
which patch
echo "Found patch"
echo "VALIDATION SUCCESS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment