We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb9f516 commit 8f8fa1dCopy full SHA for 8f8fa1d
exe/runa
@@ -60,8 +60,13 @@ class RunaCli < Thor
60
deploy_load_path_script
61
path = File.join(deploy_path, deploy_script_name)
62
path += ".bat" if OS.windows?
63
- File.write(path, deploy_script(root_dir, script_file))
64
- puts "Deploy execution script to '#{path}'."
+ if !File.exist?(path)
+ File.write(path, deploy_script(root_dir, script_file))
65
+ puts "Deploy execution script to '#{path}'."
66
+ else
67
+ puts "Error: '#{path}' is already exists."
68
+ exit(1)
69
+ end
70
end
71
72
private
0 commit comments