Skip to content
Snippets Groups Projects
Commit 0d8faa4d authored by Alberto LIVIO BECCARIA's avatar Alberto LIVIO BECCARIA
Browse files

Intercepted curl error conditions and abort installation if return code != 0.

parent 3c524a45
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,11 @@ function downloadFiles {
do
echo -e "\n$i/${#files[@]} - $base_url/$f"
curl -# --fail -O "$base_url/$f"
if [[ $? != 0 ]]
then
echo "curl exited with error code != 0, installation aborted."
exit 1
fi
i=$(expr $i + 1)
done
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment