ipctool to return cUrl error code

pull/1197/head
Alexander 2023-12-16 18:44:12 +03:00
parent 4fa1371fd1
commit c48a56bb83
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 $@
;;