Skip to content

Commit

Permalink
FIX improve get_cjexl.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fgalan committed May 28, 2024
1 parent e3a3f45 commit ba0826f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get_cjexl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ TOKEN=$2

res_code=$(curl -I -s -o /dev/null -w "%{http_code}" -H "Authorization: token $TOKEN" https://api.github.com/repos/telefonicasc/cjexl/releases/tags/$CJEXL_VERSION)
if [ "$res_code" -eq 200 ]; then
echo "get_cjexl: downloading cjexl lib"
echo "get_cjexl: downloading cjexl lib $CJEXL_VERSION"
ASSET_ID=$(curl -s -S -H "Authorization: token $TOKEN" https://api.github.com/repos/telefonicasc/cjexl/releases/tags/$CJEXL_VERSION | grep -C3 libcjexl.a | grep '"id"' | awk -F ' ' '{print $2}' | awk -F ',' '{print $1}')
curl -L -s -o /usr/local/lib/libcjexl.a -H "Authorization: token $TOKEN" -H "Accept: application/octet-stream" https://api.github.com/repos/telefonicasc/cjexl/releases/assets/$ASSET_ID
MD5SUM=$(md5sum /usr/local/lib/libcjexl.a | awk -F ' ' '{print$1}')
Expand Down

0 comments on commit ba0826f

Please sign in to comment.