projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into 10645-cr-mounts-display
[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
}