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:
Devin Teske 2012-08-21 13:46:46 +00:00
parent abf0999093
commit 442646f5c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239500

View File

@ -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"