improve error message
This commit is contained in:
@@ -114,6 +114,12 @@ elif ! [[ -f /run/dump1090-fa/aircraft.json ]] ; then
|
||||
srcdir=/run/dump1090-mutability
|
||||
elif [[ -f /run/skyaware978/aircraft.json ]]; then
|
||||
srcdir=/run/skyaware978
|
||||
else
|
||||
echo --------------
|
||||
echo FATAL: could not find aircraft.json in any of the usual places!
|
||||
echo "checked these: /run/readsb /run/dump1090-fa /run/dump1090 /run/dump1090-mutability /run/adsbexchange-feed /run/skyaware978"
|
||||
echo --------------
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
11
tar1090.sh
11
tar1090.sh
@@ -20,9 +20,14 @@ COMPRESS_978=${10}
|
||||
|
||||
if ! [[ -d $RUN_DIR && -d $SRC_DIR ]]
|
||||
then
|
||||
echo "runtime directory or source directory are not specified or not directories, fatal error!"
|
||||
echo "minimal Syntax: bash tar1090.sh <runtime directory> <dump1090 source directory>"
|
||||
echo "Syntax: bash tar1090.sh <runtime directory> <dump1090 source directory> <history interval> <history size> <chunk size> <enable 978 yes/no> <URL for 978 aircraft.json> <interval 978 is updated>"
|
||||
if ! [[ -d $RUN_DIR ]]; then
|
||||
echo "runtime directory ( $RUN_DIR ) is not a dircectory, fatal error!"
|
||||
fi
|
||||
if ! [[ -d $SRC_DIR ]]; then
|
||||
echo "source directory ( $SRC_DIR ) is not a directory, fatal error!"
|
||||
fi
|
||||
#echo "minimal Syntax: bash tar1090.sh <runtime directory> <dump1090 source directory>"
|
||||
#echo "Syntax: bash tar1090.sh <runtime directory> <dump1090 source directory> <history interval> <history size> <chunk size> <enable 978 yes/no> <URL for 978 aircraft.json> <interval 978 is updated>"
|
||||
exit 1
|
||||
fi
|
||||
if [[ -z $HISTORY_SIZE || -z $INTERVAL || -z $CHUNK_SIZE ]]
|
||||
|
||||
Reference in New Issue
Block a user