hurl/ci/check_version.sh
2021-01-05 08:17:34 +01:00

13 lines
229 B
Bash
Executable File

#!/bin/bash
set -e
# Check version
EXPECTED="1.49.0"
ACTUAL="$(cargo --version | cut -d" " -f2)"
echo "check that version is $EXPECTED"
if [ "$EXPECTED" != "$ACTUAL" ]; then
echo "Failure! version is $ACTUAL"
exit 1
fi