Skip to content

Commit

Permalink
Added regex to replace version of chocolatey install file.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpinto committed Mar 30, 2017
1 parent ec0959c commit a6fc90f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ echo "Version: $version"
sed 's|<version>.*</version>|<version>'$version'</version>|' $chocolatey_spec_file > "$chocolatey_spec_file.tmp"
mv "$chocolatey_spec_file.tmp" $chocolatey_spec_file
sed 's|https://github.com/iron-io/functions/releases/download/.*/fn.exe|https://github.com/iron-io/functions/releases/download/'$version'/fn.exe|' $chocolatey_install_file > "$chocolatey_install_file.tmp"
mv "$chocolatey_spec_file.tmp" $chocolatey_spec_file

sed 's//g' $chocolatey_install_file
mv "$chocolatey_install_file.tmp" $chocolatey_install_file

make docker-build

Expand Down

0 comments on commit a6fc90f

Please sign in to comment.