Skip to content

Commit

Permalink
package install: fix a non-POSIX-ism (re: dde4451)
Browse files Browse the repository at this point in the history
'bin/package install' breaks on pure POSIX shells because I used
the regex negator ^ instead of the glob pattern negator ! in a glob
pattern bracket pattern. Oops.
  • Loading branch information
McDutchie committed Aug 2, 2022
1 parent cd18b4f commit c848433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,7 @@ do_install() # dir [ command ... ]
dd=$1
shift
case $dd in
'' | [^/]*)
'' | [!/]*)
err_out "ERROR: destination directory '$dd' must begin with a /" ;;
esac
# commands to install by default
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/INIT/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2667,7 +2667,7 @@ do_install() # dir [ command ... ]
dd=$1
shift
case $dd in
'' | [^/]*)
'' | [!/]*)
err_out "ERROR: destination directory '$dd' must begin with a /" ;;
esac
# commands to install by default
Expand Down

0 comments on commit c848433

Please sign in to comment.