Skip to content

Commit

Permalink
real devs debug like this bitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Capuccino committed Sep 27, 2018
1 parent 446b0cf commit de945d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inject_version.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/sh

if [ ! -z TRAVIS_TAG ]; then
echo " ---> Tag exists, using tag."
sed -i "s/define config.version = \"0.1.2\"/define config.version = \"$TRAVIS_TAG\"/g" mod/game/options.rpy;
cat mod/game/options.rpy | grep config.version;
else
echo " ---> Tag not exists, using hash."
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;
fi

0 comments on commit de945d7

Please sign in to comment.