projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch '9751-cwl-keep-dir' closes #9751
[arvados.git]
/
services
/
crunch-dispatch-slurm
/
script.go
1
package main
2
3
import (
4
"strings"
5
)
6
7
func execScript(args []string) string {
8
s := "#!/bin/sh\nexec"
9
for _, w := range args {
10
s += ` '`
11
s += strings.Replace(w, `'`, `'\''`, -1)
12
s += `'`
13
}
14
return s + "\n"
15
}