Fix "unexpected operator" error when passed multi-word first-argument
containing whitespace. Also make other changes to support multi-word arguments. PR: bin/170759 Submitted by: dteske Reviewed by: emaste (mentor) Approved by: emaste (mentor) MFC after: 3 days
This commit is contained in:
parent
abf0999093
commit
442646f5c1
@ -34,11 +34,10 @@
|
||||
|
||||
VERB=$1; shift
|
||||
|
||||
if [ -z $VERB ]; then
|
||||
if [ -z "$VERB" ]; then
|
||||
VERB=auto
|
||||
fi
|
||||
|
||||
test -d "$BSDINSTALL_TMPETC" || mkdir "$BSDINSTALL_TMPETC"
|
||||
echo Running installation step: $VERB $@ >> "$BSDINSTALL_LOG"
|
||||
exec /usr/libexec/bsdinstall/$VERB $@ 2>>"$BSDINSTALL_LOG"
|
||||
|
||||
echo "Running installation step: $VERB $@" >> "$BSDINSTALL_LOG"
|
||||
exec "/usr/libexec/bsdinstall/$VERB" "$@" 2>>"$BSDINSTALL_LOG"
|
||||
|
Loading…
x
Reference in New Issue
Block a user