summaryrefslogtreecommitdiff
path: root/vendor/github.com/ProtonMail/go-autostart/quote.go
blob: b906eed05119aaad4d1561fb5ef529da33bbb72f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// +build !darwin

package autostart

import (
	"strconv"
	"strings"
)

func quote(args []string) string {
	for i, v := range args {
		args[i] = strconv.Quote(v)
	}

	return strings.Join(args, " ")
}