From 9c7c25bd98e796b76faa07c7a535fca1c25a0c3a Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 15 Feb 2023 10:10:48 +0000 Subject: [PATCH] Fix bug. --- announcement.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/announcement.gemspec b/announcement.gemspec index 4f8050a..80c4c6c 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -33,7 +33,7 @@ if bundle_update_flag check_texts = ['@import "../../bootstrap/variables";',".response-content {\n justify-self: auto;\n}\n"] git_url = bundler_with_clean_env{%x[cd '#{env_pwd}' && git config --get remote.origin.url].split("\n")[0]} git_remote = bundler_with_clean_env{%x[cd '#{env_pwd}' && git remote].split("\n")[0]} - if git_url.exclude?('//ruling.digital/git') && !File.exist?("#{env_pwd}/custom_git.txt") + if !(git_url.include?('//ruling.digital/git')) && !(File.exist?("#{env_pwd}/custom_git.txt")) puts 'changing remote url' bundler_with_clean_env{system("cd #{env_pwd} && git remote set-url #{git_remote} https://ruling.digital/git")} end