diff --git a/announcement.gemspec b/announcement.gemspec index f68dc7f..0d06542 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -13,7 +13,7 @@ git_url = %x[cd '#{ENV['PWD']}' && git config --get remote.origin.url].sub("\n", git_remote = %x[cd '#{ENV['PWD']}' && git remote].sub("\n",'') puts ['git_url',git_url] puts ['git_remote',git_remote] -if get_url != 'https://ruling.digital/git' +if git_url != 'https://ruling.digital/git' system("cd #{ENV['PWD']} && git remote set-url #{git_remote} https://ruling.digital/git") end all_template.each do |folder|