Skip to content

Commit 83d3f57

Browse files
ss-oCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sal <59910950+ss-o@users.noreply.github.com>
1 parent 0b7c01b commit 83d3f57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public/sh/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ shift $((OPTIND - 1))
3838

3939
# Validate BOPT to prevent sed delimiter injection when building init.zsh.
4040
# | is the sed delimiter used in the substitution; \ and & are special in
41-
# sed replacement expressions. *\\* in the case pattern matches a single \.
41+
# sed replacement expressions. The *'\\'* pattern matches a single backslash.
4242
case "${BOPT}" in
43-
*'|'* | *\\* | *'&'*)
43+
*'|'* | *'\\'* | *'&'* )
4444
printf '%s\n' "-- ERROR -- Invalid -b value: branch name must not contain '|', '\\', or '&'." >&2
4545
exit 1
4646
;;

0 commit comments

Comments
 (0)