Skip to content

Commit

Permalink
using GNU sed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bin Yi committed Mar 13, 2019
1 parent 283d2ab commit c1e36ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
#!/bin/sh

echo "Starting build process in: `pwd`"
set -e

if [[ ! -z "$TRAVIS_TAG" ]]; then
echo "Building for tag $TRAVIS_TAG, modify .gemspec file..."
sed -i '' "s/0.0.0/$TRAVIS_TAG/g" ./fluent-plugin-sumologic_output.gemspec
fi
VERSION="${TRAVIS_TAG:=0.0.0}"
echo "Building for tag $VERSION, modify .gemspec file..."
sed -i.bak "s/0.0.0/$VERSION/g" ./fluent-plugin-sumologic_output.gemspec
rm -f ./fluent-plugin-sumologic_output.gemspec.bak

echo "Install bundler..."
bundle install
Expand Down

0 comments on commit c1e36ca

Please sign in to comment.