Skip to content

Commit

Permalink
RDMPDEV-1399: Can't gsub an immutable string
Browse files Browse the repository at this point in the history
  • Loading branch information
ltramma committed May 23, 2019
1 parent 07204e1 commit 0847fc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rakefile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@
task :github do
version = File.open('version') {|f| f.readline}
puts "version: #{version}"
branch = ENV['BRANCH_SELECTOR'] || "origin/release/3.0.0.X"
branch.gsub!(/origin\//, "")
branch = (ENV['BRANCH_SELECTOR'] || "origin/release/3.0.0.X").gsub(/origin\//, "")
puts branch
prerelease = branch.match(/master/) ? false : true

Expand Down

0 comments on commit 0847fc8

Please sign in to comment.