diff options
-rwxr-xr-x | icon_download.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/icon_download.sh b/icon_download.sh index 343b10c..462685c 100755 --- a/icon_download.sh +++ b/icon_download.sh @@ -45,7 +45,11 @@ done echo Done downloading. Decompressing... for F in $OUTDIR/*.grib2.bz2; do - bzip2 -df "$F" + while [ $(pgrep -c -P$$) -gt 5 ]; do + sleep 1 + done + + bzip2 -df "$F" & done rm -f $OUTDIR/combined.grib2 |