Skip to content

Commit

Permalink
Use curl instead of wget
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Jan 21, 2024
1 parent 988d306 commit e08869c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ if [ "$INPUT_VERSION" == "latest" ]; then
| grep "/dependency-tree-diff.jar" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi - -O dependency-tree-diff.jar
| xargs curl -L -s -o dependency-tree-diff.jar
else
wget "https://github.com/JakeWharton/dependency-tree-diff/releases/download/$INPUT_VERSION/dependency-tree-diff.jar" -q -O dependency-tree-diff.jar
curl -L -s -o dependency-tree-diff.jar "https://github.com/JakeWharton/dependency-tree-diff/releases/download/$INPUT_VERSION/dependency-tree-diff.jar"
fi

if [ "$INPUT_PROJECT" == ":" ]; then
INPUT_PROJECT=""
fi


if [ "$INPUT_DEBUG" == "true" ]; then
echo "download finished"
ls -al
Expand Down

0 comments on commit e08869c

Please sign in to comment.