Skip to content

Commit

Permalink
Allow .zip archive URLs along with .tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
punchagan committed Feb 1, 2024
1 parent ac6e5a0 commit ed013b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_all_custom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ find_commit () {
COMMIT=`git ls-remote https://github.com/ocaml/ocaml.git refs/heads/trunk | awk -F' ' '{print $1}'`
elif [[ ${URL} == *"refs/head"* || ${URL} == *"refs/pull"* ]]; then
GIT_SOURCE=`echo ${URL} | awk -F'/archive/' '{print $1}'`
REFS_PATH=`echo ${URL} | awk -F'/archive/' '{print $2}' | sed 's/.tar.gz//g'`
REFS_PATH=`echo ${URL} | awk -F'/archive/' '{print $2}' | sed 's/\(.tar.gz\|.zip\)//g'`
COMMIT=`git ls-remote ${GIT_SOURCE} ${REFS_PATH} | awk -F' ' '{print $1}'`
elif [[ ${URL} == *"archive"* ]]; then
COMMIT=`echo ${URL##*/} | awk -F'.' '{print $1}'`
Expand Down

0 comments on commit ed013b7

Please sign in to comment.