summaryrefslogtreecommitdiffstats
path: root/src/util/util_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util_windows.go')
-rw-r--r--src/util/util_windows.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/util_windows.go b/src/util/util_windows.go
index 3a4ab570..d9db8342 100644
--- a/src/util/util_windows.go
+++ b/src/util/util_windows.go
@@ -157,10 +157,10 @@ func (x *Executor) QuoteEntry(entry string) string {
*/
return escapeArg(entry)
case shellTypePowerShell:
- escaped := strings.Replace(entry, `"`, `\"`, -1)
- return "'" + strings.Replace(escaped, "'", "''", -1) + "'"
+ escaped := strings.ReplaceAll(entry, `"`, `\"`)
+ return "'" + strings.ReplaceAll(escaped, "'", "''") + "'"
default:
- return "'" + strings.Replace(entry, "'", "'\\''", -1) + "'"
+ return "'" + strings.ReplaceAll(entry, "'", "'\\''") + "'"
}
}