mirror of
https://github.com/danog/gigaclone.git
synced 2024-12-02 09:27:55 +01:00
Update gigaclone
This commit is contained in:
parent
368e3b11d7
commit
ec1abbaa4a
@ -6,6 +6,9 @@ Usage: $(basename $0) output_dir
|
|||||||
|
|
||||||
If no output dir is specified, . is the default.
|
If no output dir is specified, . is the default.
|
||||||
"
|
"
|
||||||
|
t() {
|
||||||
|
until [ "$(ps aux | grep wget | grep -v grep)" = "" ]; do echo Still working;sleep 60;done
|
||||||
|
}
|
||||||
[ "$1" = "" ] && dir="$PWD" || dir="$1"
|
[ "$1" = "" ] && dir="$PWD" || dir="$1"
|
||||||
tmp="$dir/tmp"
|
tmp="$dir/tmp"
|
||||||
mkdir $tmp
|
mkdir $tmp
|
||||||
@ -23,7 +26,7 @@ awk '!seen[$0]++' $tmp/tmp >$tmp/final
|
|||||||
|
|
||||||
cd $dir
|
cd $dir
|
||||||
echo "Download everything."
|
echo "Download everything."
|
||||||
[ "$TRAVIS" = "true" ] && { wget -i $tmp/final -x -N -q | { until [ "$(ps aux | grep wget | grep -v grep)" = "" ]; echo Still working;sleep 60;done } ; } || wget -i $tmp/final -x -N
|
[ "$TRAVIS" = "true" ] && { wget -i $tmp/final -x -N -q | t || wget -i $tmp/final -x -N
|
||||||
echo "Clean up."
|
echo "Clean up."
|
||||||
rm -r $tmp
|
rm -r $tmp
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user