Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

fix sed #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/deploy/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_deploy_zip_file(*files)

def use_tag_in_dockerrun(repo, tag)
shout "Changing Dockerrun.aws.json to contain latest tag"
command = "sed 's/<TAG>/#{tag}/' < Dockerrun.aws.json.template > Dockerrun.aws.json"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does adding the global option to the regex do and what does removed the < command change?

command = "sed 's/<TAG>/#{tag}/g' Dockerrun.aws.json.template > Dockerrun.aws.json"
exit(1) unless system(command)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/deploy/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Deploy
VERSION = "1.5.0"
VERSION = "1.5.1"
end