aboutsummaryrefslogtreecommitdiff
path: root/icon_download.sh
diff options
context:
space:
mode:
Diffstat (limited to 'icon_download.sh')
-rwxr-xr-xicon_download.sh6
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