Change how archive directory is structured; create folder if needed
This commit is contained in:
parent
d3accb4d65
commit
3a5a2c34e3
|
@ -36,6 +36,12 @@ do
|
|||
fi
|
||||
done
|
||||
else
|
||||
|
||||
if [[ ! -d "/data/$today/" ]]
|
||||
then
|
||||
mkdir -p "/data/$today/"
|
||||
fi
|
||||
|
||||
curl -X "GET" "$url" --no-progress-meter >> "/data/$today/$today.$host.json"
|
||||
fi
|
||||
|
||||
|
@ -45,4 +51,7 @@ do
|
|||
sleep 5m;
|
||||
fi
|
||||
|
||||
done
|
||||
done
|
||||
|
||||
## Exit 0 by default
|
||||
exit 0
|
Loading…
Reference in New Issue