Commit 2044611820185217df2d20b9278f40b62f407fce
1 parent
16bbe60f
Exists in
master
and in
17 other branches
Make script wrapper step idempotent
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
config/software/gitlab-shell.rb
... | ... | @@ -29,6 +29,7 @@ build do |
29 | 29 | env_shebang = "#!/usr/bin/env ruby" |
30 | 30 | `grep -r -l '^#{env_shebang}' #{project_dir}`.split("\n").each do |ruby_script| |
31 | 31 | script = File.read(ruby_script) |
32 | + next if script.start_with?("#!#{install_dir}") # Shebang looks good, skip this script | |
32 | 33 | erb :dest => ruby_script, |
33 | 34 | :source => "ruby_script_wrapper.erb", |
34 | 35 | :mode => 0755, | ... | ... |