Revert "Explicitly chmod exec script files"
This commit is contained in:
		
							parent
							
								
									f16bff5b95
								
							
						
					
					
						commit
						3e298bbbc8
					
				@ -328,12 +328,10 @@ class Pathname
 | 
			
		||||
    mkpath
 | 
			
		||||
    targets.each do |target|
 | 
			
		||||
      target = Pathname.new(target) # allow pathnames or strings
 | 
			
		||||
      script = join(target.basename)
 | 
			
		||||
      script.write <<~SH
 | 
			
		||||
      join(target.basename).write <<~SH
 | 
			
		||||
        #!/bin/bash
 | 
			
		||||
        exec "#{target}" "$@"
 | 
			
		||||
      SH
 | 
			
		||||
      script.chmod 0555
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
@ -346,7 +344,6 @@ class Pathname
 | 
			
		||||
      #!/bin/bash
 | 
			
		||||
      #{env_export}exec "#{target}" "$@"
 | 
			
		||||
    SH
 | 
			
		||||
    chmod 0555
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  # Writes a wrapper env script and moves all files to the dst
 | 
			
		||||
@ -370,7 +367,6 @@ class Pathname
 | 
			
		||||
      #!/bin/bash
 | 
			
		||||
      #{java_home}exec java #{java_opts} -jar #{target_jar} "$@"
 | 
			
		||||
    SH
 | 
			
		||||
    chmod 0555
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def install_metafiles(from = Pathname.pwd)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user