File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ before_script:
9
9
|
10
10
if [ ! -z "$TRAVIS_TAG" ]; then
11
11
echo -e "Incrementing version for release build...\n"
12
- sed -i "3s /.*/version : $TRAVIS_TAG/" $TRAVIS_BUILD_DIR/src/plugin.yml
12
+ sed -i "/^version:/ s /.*/version : $TRAVIS_TAG/" $TRAVIS_BUILD_DIR/src/plugin.yml
13
13
14
14
git config --global user.email "[email protected] "
15
15
git config --global user.name "travis-ci"
@@ -19,7 +19,7 @@ before_script:
19
19
git push --quiet https://[email protected] /Codisimus/PhatLoots
20
20
else
21
21
echo -e "Appending build number to version for dev build...\n"
22
- sed -e "3s /$/+$TRAVIS_BUILD_NUMBER/" $TRAVIS_BUILD_DIR/src/plugin.yml
22
+ sed -i "/^version:/ s /$/+$TRAVIS_BUILD_NUMBER/" $TRAVIS_BUILD_DIR/src/plugin.yml
23
23
cat $TRAVIS_BUILD_DIR/src/plugin.yml
24
24
fi
25
25
You can’t perform that action at this time.
0 commit comments