Skip to content
Snippets Groups Projects
Commit ebc04d7f authored by Marek Vavruša's avatar Marek Vavruša
Browse files

build: follow redirects in dl links

parent edce5cf6
Branches
Tags
No related merge requests found
......@@ -44,7 +44,7 @@ function fetch_pkg {
[ ! -e $1 ] && git clone "$2" $1 &> /dev/null
cd $1; git checkout $3 &> /dev/null; cd -
else
[ ! -f $1.tar.${2##*.} ] && curl "$2" > $1.tar.${2##*.}
[ ! -f $1.tar.${2##*.} ] && curl -L "$2" > $1.tar.${2##*.}
tar xf $1.tar.${2##*.}
fi
cd $1
......
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