Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitre committed May 11, 2024
1 parent 7c94344 commit f899f27
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions scripts/dev/downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ downloader() {
if [ $# -ge 2 ]; then
SILENTARGS=$2
fi
if [[ "${SILENTARGS}" == "-s" ]]; then
if command -v wget2 2>/dev/null; then
wget2 -q $@;
elif command -v curl 2>/dev/null; then
for PKG in $@; do
curl -LO --retry 20 -O -s $PKG;
done
else
for PKG in $@; do
wget -q $PKG@ 2> /dev/null;
done
fi;
else
# if [[ "${SILENTARGS}" == "-s" ]]; then
# if command -v wget2 2>/dev/null; then
# wget2 -q $@;
# elif command -v curl 2>/dev/null; then
# for PKG in $@; do
# curl -LO --retry 20 -O -s $PKG;
# done
# else
# for PKG in $@; do
# wget -q $PKG@ 2> /dev/null;
# done
# fi;
# else
if command -v wget2 2>/dev/null; then
wget2 $@;
elif command -v curl 2>/dev/null; then
Expand All @@ -45,7 +45,7 @@ downloader() {
wget $PKG 2> /dev/null;
done
fi;
fi
# fi


}
Expand Down

0 comments on commit f899f27

Please sign in to comment.