Error message when not able to create the optiondir directory.

optiondir being defined in a subshell wasn't defined when the error message is printed.

PR:		ports/176849
Submitted by:	Oleg Ginzburg <olevole@olevole.ru>
This commit is contained in:
Baptiste Daroussin 2013-07-10 06:44:19 +00:00
parent 96255e9616
commit 8b330db9e1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322619

View File

@ -6091,14 +6091,14 @@ do-config:
(${ECHO_MSG} "===> Cannot create $${optionsdir}, check permissions"; exit 1); \
${ECHO_MSG} "===> Returning to user credentials"
.else
@(optionsdir=${OPTIONS_FILE}; optionsdir=$${optionsdir%/*}; \
@optionsdir=${OPTIONS_FILE}; optionsdir=$${optionsdir%/*}; \
oldoptionsdir=${OPTIONSFILE}; oldoptionsdir=$${oldoptionsdir%/*}; \
if [ -d $${oldoptionsdir} -a ! -d $${optionsdir} ]; then \
${MV} $${oldoptionsdir} $${optionsdir}; \
elif [ -d $${oldoptionsdir} -a -d $${optionsdir} ]; then \
${RM} -rf $${oldoptionsdir} ; \
fi ; \
${MKDIR} $${optionsdir} 2> /dev/null) || \
${MKDIR} $${optionsdir} 2> /dev/null || \
(${ECHO_MSG} "===> Cannot create $${optionsdir}, check permissions"; exit 1)
.endif
@TMPOPTIONSFILE=$$(mktemp -t portoptions); \