8784: Fix test for latest firefox.
[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 }