generateInjectedScript generates a shell script based on SIF definition file %environment and %runscript data, and returns it.
(environment []string, runscript []string)
| 59 | // generateInjectedScript generates a shell script based on |
| 60 | // SIF definition file %environment and %runscript data, and returns it. |
| 61 | func generateInjectedScript(environment []string, runscript []string) []byte { |
| 62 | script := fmt.Sprintf("#!/bin/bash\n"+ |
| 63 | "%s\n"+ |
| 64 | "%s\n", strings.Join(environment, "\n"), strings.Join(runscript, "\n")) |
| 65 | return []byte(script) |
| 66 | } |
| 67 | |
| 68 | // processDefFile finds sif.DataDeffile in sifImage, if any, |
| 69 | // and returns: |
no outgoing calls
searching dependent graphs…