Skip to content

Commit

Permalink
Removing empty files so not to confuse reprepro, refs #9
Browse files Browse the repository at this point in the history
  • Loading branch information
laeti-tia committed Apr 3, 2024
1 parent 8c86f92 commit 506ec3b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions opensearch/get_archive_dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,13 @@ for p in ${package}; do
fi

if [ ! -z $url ]; then
curl -sS -o $filename -L $url;
ls -lh $filename
curl -sS -retry 5 -o $filename -L $url;
if [ "$(ls -s $filename | awk '{print $1}' )" -eq "0" ]; then
echo "$filename was empty, we drop it to not confues reprepro."
rm -f $filename
else; then
ls -lh $filename
fi
else
echo "skipping $p";
fi
Expand Down

0 comments on commit 506ec3b

Please sign in to comment.