2020-05-01 01:42:44 +03:00
|
|
|
#!/usr/bin/env sh
|
2019-01-30 21:34:06 +03:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
abort() {
|
|
|
|
echo "$@"
|
|
|
|
return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "${CHECK_VERSION}" ]; then
|
|
|
|
abort "Version must not be empty"
|
|
|
|
fi
|
|
|
|
if [ "${CHECK_VERSION}" = "${DEFAULT_VERSION}" ]; then
|
|
|
|
abort "Version must not match default version: ${DEFAULT_VERSION}"
|
|
|
|
fi
|
|
|
|
|