Commit 7f8bac2a authored by Olav Morken's avatar Olav Morken
Browse files

Abort the script if we fail to download the source code

Instead of continuing with the next steps, abort the script on a
failed or partial download of the source code.
parent 90c9e3f8
......@@ -56,7 +56,7 @@ apt-get update
# Download the source code for the project.
radsecproxy_url="https://github.com/radsecproxy/radsecproxy"
radsecproxy_srcurl="${radsecproxy_url}/releases/download/${version}/radsecproxy-${version}.tar.gz"
curl --silent -o "${package}"_"${version}".orig.tar.gz -L "${radsecproxy_srcurl}"
curl --fail --silent -o "${package}"_"${version}".orig.tar.gz -L "${radsecproxy_srcurl}"
# Download the Debian source package for project.
apt-get source ${package}
......
Markdown is supported
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