From 60dbf2cda0de3778907340d2e2c3122eb359e7e4 Mon Sep 17 00:00:00 2001 From: Capuccino Date: Thu, 27 Sep 2018 15:14:34 +0000 Subject: [PATCH] I realized I did this wrong --- inject_version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inject_version.sh b/inject_version.sh index c0ff92d..37aa1df 100755 --- a/inject_version.sh +++ b/inject_version.sh @@ -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;