fixed typo and bad if statement syntax

This commit is contained in:
Taylor Vaughn 2015-06-10 15:26:11 +00:00
parent 84413b20f4
commit 4837fb615d
1 changed files with 3 additions and 3 deletions

View File

@ -64,12 +64,12 @@ if [ "x$FIX_CRC" = "xyes" ]; then ARGS="$ARGS --fix"; fi
if [ "x$PHASE_ENHANCE" = "xyes" ]; then ARGS="$ARGS --phase-enhance"; fi
if [ "x$AGGRESSIVE" = "xyes" ]; then ARGS="$ARGS --aggressive"; fi
LATLONFILE=/var/lib/dump1090/latlon
if [ -e $LATLONFILE ]; them
if [ -e $LATLONFILE ]; then
LATVAL=$(sed -n '1p' < $LATLONFILE)
LONVAL=$(sed -n '2p' < $LATLONFILE)
fi
if [ -n "$LAT" ]; then ARGS="$ARGS --lat $LAT"; else if [ -n $LATVAL ]; then ARGS="$ARGS --lat $LATVAL"; fi
if [ -n "$LON" ]; then ARGS="$ARGS --lon $LON"; else if [ -n $LONVAL ]; then ARGS="$ARGS --lon $LONVAL"; fi
if [ -n "$LAT" ]; then ARGS="$ARGS --lat $LAT"; elif [ -n $LATVAL ]; then ARGS="$ARGS --lat $LATVAL"; fi
if [ -n "$LON" ]; then ARGS="$ARGS --lon $LON"; elif [ -n $LONVAL ]; then ARGS="$ARGS --lon $LONVAL"; fi
ARGS="$ARGS --max-range $MAX_RANGE"; fi
# net: