Skip to content

Commit

Permalink
🐛 fix: add continue flag in order to prevent from downloading multipl…
Browse files Browse the repository at this point in the history
…e duplicated files
  • Loading branch information
mostafaghadimi committed Feb 20, 2024
1 parent edaae68 commit d424551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DEBEZIUM_ARTIFACTS=(
)

for ARTIFACT in ${DEBEZIUM_ARTIFACTS[@]}; do
wget --quiet --show-progress --progress=bar:force --directory-prefix "$JAR_FILES_DIR/" "https://packages.confluent.io/maven/io/confluent/$ARTIFACT/$VERSION/$ARTIFACT-$VERSION.jar"
wget --continue --quiet --show-progress --progress=bar:force --directory-prefix "$JAR_FILES_DIR/" "https://packages.confluent.io/maven/io/confluent/$ARTIFACT/$VERSION/$ARTIFACT-$VERSION.jar"
done

OTHER_ARTIFACTS_URL=(
Expand All @@ -45,7 +45,7 @@ OTHER_ARTIFACTS_URL=(
)

for ARTIFACT in ${OTHER_ARTIFACTS_URL[@]}; do
wget --quiet --show-progress --progress=bar:force --directory-prefix "$JAR_FILES_DIR/" "$ARTIFACT"
wget --continue --quiet --show-progress --progress=bar:force --directory-prefix "$JAR_FILES_DIR/" "$ARTIFACT"
done

echo "Done"
Expand Down

0 comments on commit d424551

Please sign in to comment.