ipctool to return cUrl error code. (#1197)

Co-authored-by: Alexander <aaleschenko@freeconferencecall.com>
Co-authored-by: Signor Pellegrino <68112357+FlyRouter@users.noreply.github.com>
pull/1201/head
Alexander 2023-12-17 21:01:14 +03:00 committed by GitHub
parent fafc7356c0
commit b9d49c320b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -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 $@
;;