Commits

dwt committed 036d162

protected more array splices from spaces in the contained strings

Comments (0)

Files changed (2)

Dependencies/build.sh

 BUILD_OTR=false
 STRAIGHT_TO_LIBPURPLE=false
 MTN_UPDATE_PARAM=""
-for option in ${@:1} ; do
+for option in "${@:1}" ; do
 	case $option in
 		--configure)
 			FORCE_CONFIGURE=true

Dependencies/phases/utility.sh

 " >> "${ERR_FILE}"
 
 	(
-		${@:1}
+		"${@:1}"
 	) >> "${LOG_FILE}" 2>> "${ERR_FILE}"
 }
 
 # found.
 asserttools() {
 	missing=false
-	for tool in ${@:1}; do
+	for tool in "${@:1}"; do
 		if ! which $tool &> /dev/null; then
 			error "Missing required tool $tool."
 			missing=true