follow redirects when getting satellite data
parent
780429be3d
commit
39ed791cfb
|
@ -17,7 +17,7 @@ outfile=${1:-'satellites.tle'}
|
||||||
|
|
||||||
log "Updating satellite information"
|
log "Updating satellite information"
|
||||||
|
|
||||||
curl https://www.celestrak.com/NORAD/elements/weather.txt 2>/dev/null | \
|
curl -L https://www.celestrak.com/NORAD/elements/weather.txt 2>/dev/null | \
|
||||||
grep 'NOAA 15\|NOAA 18\|NOAA 19' --no-group-separator -A 2 > ${outfile}
|
grep 'NOAA 15\|NOAA 18\|NOAA 19' --no-group-separator -A 2 > ${outfile}
|
||||||
|
|
||||||
if [ $? ]; then
|
if [ $? ]; then
|
||||||
|
|
Loading…
Reference in New Issue