From b9d49c320b76425fbcef914c7c75c0386249b993 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 17 Dec 2023 21:01:14 +0300 Subject: [PATCH] ipctool to return cUrl error code. (#1197) Co-authored-by: Alexander Co-authored-by: Signor Pellegrino <68112357+FlyRouter@users.noreply.github.com> --- general/overlay/usr/sbin/extutils | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/general/overlay/usr/sbin/extutils b/general/overlay/usr/sbin/extutils index 741cdd27..be4d0ad7 100755 --- a/general/overlay/usr/sbin/extutils +++ b/general/overlay/usr/sbin/extutils @@ -21,9 +21,15 @@ case "${CMD}" in ipctool) IPCTOOL=/tmp/ipctool if [ ! -x $IPCTOOL ]; then - curl -s -L -o $IPCTOOL https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool$ARC - chmod +x $IPCTOOL - echo "The ipctool installed as remote GitHub plugin" + curl -s -L -f -o $IPCTOOL https://github.com/OpenIPC/ipctool/releases/download/latest/ipctool$ARC + response=$? + if [[ "$response" -ne 0 ]]; then + echo "Unable to download ipctool. cUrl error code is $response." + exit $response + else + chmod +x $IPCTOOL + echo "The ipctool installed as remote GitHub plugin" + fi fi $IPCTOOL $@ ;;