From 780d42c7549512ba040638a3afaee07043a0459f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 26 Feb 2014 21:37:11 -0500 Subject: oh_buildsystem_arch(): Require second argument. --- (limited to 'lib') diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh index 8207bcc..ffdba86 100644 --- a/lib/buildsystem.sh +++ b/lib/buildsystem.sh @@ -140,17 +140,18 @@ oh_buildsystem_arch() local bs_arch= local system= - if [ ${#} -eq 1 ]; then + if [ ${#} -eq 2 ]; then arch="${1}" + system="${2}" + else + return 125 + fi + + if [ "x${system}" = 'x' ]; then system="$(oh_buildsystem_find 'configure')" if [ ${?} -ne 0 ]; then return 1 fi - elif [ ${#} -eq 2 ]; then - arch="${1}" - system="${2}" - else - return 125 fi # Try to find a suitable build system host arch. -- cgit v0.9.1