taas: prerequisite check has been moved to a common lib.

This commit is contained in:
Ronny Nilsson 2020-11-18 15:12:06 +01:00
parent 436a57f8d6
commit faec0f002a

View file

@ -19,20 +19,10 @@ function taas-init() {
fi
if ! which taas-smoketest >/dev/null; then
echo "Error; missing command \"taas-smoketest\". Install it with:"
echo "Error; TaaS is missing! Install it with:"
echo "git clone git@dev.iopsys.eu:iopsys/iopsys-taas.git ../iopsys-taas"
exit 1
fi
# Prerequisites?
for app in expect socat timeout stdbuf bash env head strings \
tee cut tr grep curl ssh trickle; do
if ! which $app >/dev/null; then
echo "Error; missing command \"$app\""
echo "Install it from your Linux distro!"
exit 1
fi
done
}