Skip to content

Commit

Permalink
I realized I did this wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Capuccino committed Sep 27, 2018
1 parent 2b08330 commit 60dbf2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inject_version.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

if [ ! TRAVIS_TAG ]; then
sed -i "s/define config.version = \"0.1.2\"/define config.version = \"$TRAVIS_COMMIT\"/g" mod/game/options.rpy;
if [ ! -z TRAVIS_TAG ]; then
sed -i "s/config.version = \"0.1.2\"/config.version = \"$TRAVIS_COMMIT\"/g" mod/game/options.rpy;
cat mod/game/options.rpy | grep config.version;
else
sed -i "s/define config.version = \"0.1.2\"/define config.version = \"$TRAVIS_TAG\"/g" mod/game/options.rpy;
Expand Down

0 comments on commit 60dbf2c

Please sign in to comment.