diff --git a/scripts/hook.sh b/scripts/hook.sh index 1f69d5f54..7ed3a268c 100755 --- a/scripts/hook.sh +++ b/scripts/hook.sh @@ -2,8 +2,7 @@ if [[ "$TRAVIS_PULL_REQUEST" == "true" ]]; then exit 0; else echo "">/dev/null; fi -CUR_VER="$(cat ./scripts/curVer)" -CUR_VER="${CUR_VER:1}" +CUR_VER="$(tail -c +2 ./scripts/curVer)" COMMIT_TRIM="${TRAVIS_COMMIT::7}" COMMIT_MSG="$TRAVIS_COMMIT_MESSAGE"