mirror of https://github.com/OpenIPC/firmware.git
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
parent
fafc7356c0
commit
b9d49c320b
|
@ -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 $@
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue