Commit 47578e1b authored by Roman Haefeli's avatar Roman Haefeli
Browse files

add fail to curl

parent 794c2deb
...@@ -45,7 +45,7 @@ function fail { ...@@ -45,7 +45,7 @@ function fail {
cd pd-netpd/extra cd pd-netpd/extra
for url in ${ext_urls[@]} for url in ${ext_urls[@]}
do do
curl -s -o file "${url}" || fail curl --fail -s -o file "${url}" || fail
if file file | grep ' Zip archive data' > /dev/null if file file | grep ' Zip archive data' > /dev/null
then then
unzip -q file || fail unzip -q file || fail
...@@ -61,7 +61,7 @@ function fail { ...@@ -61,7 +61,7 @@ function fail {
# install netpd # install netpd
( (
cd pd-netpd cd pd-netpd
curl -s -o file "${netpd_bundle_url}" || fail curl --fail -s -o file "${netpd_bundle_url}" || fail
unzip -q file && rm file || fail unzip -q file && rm file || fail
mv netpd/instruments .. || fail mv netpd/instruments .. || fail
) || fail ) || fail
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment