hurl/ci/check_version.sh
2020-12-05 11:38:21 +01:00

13 lines
229 B
Bash
Executable File

#!/bin/bash
set -e
# Check version
EXPECTED="1.48.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