This commit is contained in:
BoHung Chiu 2021-03-09 14:52:50 +08:00
parent c4dcacb3ee
commit 8a47602879
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ namespace :create_site do
outputs = outputs.gsub(path,"#{args.path}/#{args.site_name}/#{Pathname.new(absolute_path).basename}/")
end
if include_path_lines.count != 0
exec_ssh_command_by_sudo_for_create(ssh,"sh -c \"echo '#{outputs.gsub("'","\\\"")}' > #{args.path}/#{@site_construct.get_site_name}/#{extension_file}\"")
exec_ssh_command_by_sudo_for_create(ssh,"sh -c \"echo '#{outputs.gsub("\"","\\\"").gsub("'","\\\"")}' > #{args.path}/#{@site_construct.get_site_name}/#{extension_file}\"")
end
end
end