Skip to content

Commit

Permalink
fix: escape test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Aug 6, 2024
1 parent bba7645 commit 4366e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func escapeSpecialCharacters(val string) string {
}

if strings.ContainsAny(val, " #&*;<>?[]|~") {
val = fmt.Sprintf(`"%q"`, val)
val = fmt.Sprintf("%q", val)
}

return val
Expand Down

0 comments on commit 4366e66

Please sign in to comment.