1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

package install: fix a non-POSIX-ism (re: dde4451b)

'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.
This commit is contained in:
Martijn Dekker 2022-08-02 22:43:19 +02:00
parent cd18b4f7f4
commit c848433d41
2 changed files with 2 additions and 2 deletions

View file

@ -2667,7 +2667,7 @@ do_install() # dir [ command ... ]
dd=$1 dd=$1
shift shift
case $dd in case $dd in
'' | [^/]*) '' | [!/]*)
err_out "ERROR: destination directory '$dd' must begin with a /" ;; err_out "ERROR: destination directory '$dd' must begin with a /" ;;
esac esac
# commands to install by default # commands to install by default

View file

@ -2667,7 +2667,7 @@ do_install() # dir [ command ... ]
dd=$1 dd=$1
shift shift
case $dd in case $dd in
'' | [^/]*) '' | [!/]*)
err_out "ERROR: destination directory '$dd' must begin with a /" ;; err_out "ERROR: destination directory '$dd' must begin with a /" ;;
esac esac
# commands to install by default # commands to install by default