From 16dc15bfe7a68b2670ef9d2b73c97d8bf477844a Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 13 Dec 2019 21:01:35 +0100 Subject: [PATCH] Update danio_gcc.sh --- danio_gcc.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/danio_gcc.sh b/danio_gcc.sh index 1c19930..7c3443e 100755 --- a/danio_gcc.sh +++ b/danio_gcc.sh @@ -196,11 +196,6 @@ choose_sub() done } -if ! command -v jq >/dev/null; then - echo "jq command not found, please install it before using this application!" - exit 1 -fi - targets="`grep ' - t=' .travis.yml | cut -f 2 -d = | cut -f 1 -d ' ' | sort -u`" if [ "${1}" -a "${2}" ]; then [ -z "${binutils_version}" ] && export binutils_version="master" @@ -240,6 +235,10 @@ elif [ "${AUTOBUILD}" ]; then echo "USE ONLY METHOD=\"glibc\" OR METHOD=\"newlib\" AS BASH EXVIRONMENT!" fi else + if ! command -v jq >/dev/null; then + echo "jq command not found, please install it before using this application!" + exit 1 + fi while :; do clear || reset echo "Please select architecture:"