kopia lustrzana https://github.com/jprochazka/adsb-receiver
Dump1090-mutability - Revert commit 15d7f7582b
rodzic
469aaa84e1
commit
8ee61794c4
|
|
@ -173,14 +173,14 @@ if [[ "${RECEIVER_AUTOMATED_INSTALL}" = "false" ]] ; then
|
|||
# Ask the user for the receiver's latitude.
|
||||
RECEIVER_LATITUDE_TITLE="Receiver Latitude"
|
||||
RECEIVER_LATITUDE=$(whiptail --backtitle "${RECEIVER_PROJECT_TITLE}" --title "${RECEIVER_LATITUDE_TITLE}" --nocancel --inputbox "\nEnter your receiver's latitude.\n(Example: XX.XXXXXXX)" 9 78 "${RECEIVER_LATITUDE}" 3>&1 1>&2 2>&3)
|
||||
while [[ -z "${RECEIVER_LATITUDE}" ]] || [[ `echo "${RECEIVER_LATITUDE}" | tr -d '\n' | sed -e 's/[0-9]//g' -e 's/\.//g' -e 's/-//g' | wc -c` -gt 0 ]] ; do
|
||||
while [[ -z "${RECEIVER_LATITUDE}" ]] ; do
|
||||
RECEIVER_LATITUDE_TITLE="Receiver Latitude (REQUIRED)"
|
||||
RECEIVER_LATITUDE=$(whiptail --backtitle "${RECEIVER_PROJECT_TITLE}" --title "${RECEIVER_LATITUDE_TITLE}" --nocancel --inputbox "\nEnter your receiver's latitude.\n(Example: XX.XXXXXXX)" 9 78 "${RECEIVER_LATITUDE}" 3>&1 1>&2 2>&3)
|
||||
done
|
||||
# Ask the user for the receiver's longitude.
|
||||
RECEIVER_LONGITUDE_TITLE="Receiver Longitude"
|
||||
RECEIVER_LONGITUDE=$(whiptail --backtitle "${RECEIVER_PROJECT_TITLE}" --title "${RECEIVER_LONGITUDE_TITLE}" --nocancel --inputbox "\nEnter your receeiver's longitude.\n(Example: XX.XXXXXXX)" 9 78 "${RECEIVER_LONGITUDE}" 3>&1 1>&2 2>&3)
|
||||
while [[ -z "${RECEIVER_LONGITUDE}" ]] || [[ `echo "${RECEIVER_LONGITUDE}" | tr -d '\n' | sed -e 's/[0-9]//g' -e 's/\.//g' -e 's/-//g' | wc -c` -gt 0 ]] ; do
|
||||
while [[ -z "${RECEIVER_LONGITUDE}" ]] ; do
|
||||
RECEIVER_LONGITUDE_TITLE="Receiver Longitude (REQUIRED)"
|
||||
RECEIVER_LONGITUDE=$(whiptail --backtitle "${RECEIVER_PROJECT_TITLE}" --title "${RECEIVER_LONGITUDE_TITLE}" --nocancel --inputbox "\nEnter your receeiver's longitude.\n(Example: XX.XXXXXXX)" 9 78 "${RECEIVER_LONGITUDE}" 3>&1 1>&2 2>&3)
|
||||
done
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue