From 7c78f197cc42c38cae2654a02d760e371866b3f4 Mon Sep 17 00:00:00 2001 From: Sevinj Aghayeva Date: Tue, 7 Jun 2022 20:42:52 -0400 Subject: mbuto: call cmd_check before option processing ${AWK} is needed when parsing options. Call cmd_check before option processing to make ${AWK} available. Signed-off-by: Sevinj Aghayeva --- mbuto | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mbuto b/mbuto index cd0f5eb..dbe0d5c 100755 --- a/mbuto +++ b/mbuto @@ -1195,6 +1195,11 @@ if [ "${LD_PRELOAD}" != "libfakeroot-sysv.so" ] && [ "$(id -u)" -ne 0 ]; then fi fi +# Check needed tools, exit if any is missing +for __l in ${TOOLS}; do + cmd_check "${__l}" +done + # Parse options while getopts :c:df:k:m:p:s:vh __opt; do case ${__opt} in @@ -1221,11 +1226,6 @@ if [ "${__fakeroot_missing}" = "y" ]; then exit 1 fi -# Check needed tools, exit if any is missing -for __l in ${TOOLS}; do - cmd_check "${__l}" -done - # Create working directory wd="$("${MKTEMP}" -d)" -- cgit v1.2.3