mirror of https://github.com/kami-blue/client
trim commit hash to first 7
This commit is contained in:
parent
bf6cd57c3b
commit
3ec66845f4
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
CUR_VER="$(cat ./scripts/curVer)"
|
||||
sed -i "s/modVersion=.*/modVersion=${CUR_VER:1}-$TRAVIS_COMMIT/" gradle.properties
|
||||
sed -i "s/\"version\": \".*\",/\"version\": \"${CUR_VER:1}-$TRAVIS_COMMIT\",/" src/main/resources/mcmod.info
|
||||
COMMIT_TRIM="${TRAVIS_COMMIT::33}"
|
||||
sed -i "s/modVersion=.*/modVersion=${CUR_VER:1}-$COMMIT_TRIM/" gradle.properties
|
||||
sed -i "s/\"version\": \".*\",/\"version\": \"${CUR_VER:1}-$COMMIT_TRIM\",/" src/main/resources/mcmod.info
|
||||
|
|
Loading…
Reference in New Issue