From 045d4418275129990a519dade2fec07b284934e2 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Sun, 24 Aug 2025 08:07:31 -0700 Subject: [PATCH] voacap - Only present alternate TX/RX suggestions on callsign lookups --- .../share/emcomm-tools/voacap/et-voacap.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/overlay/etc/skel/.local/share/emcomm-tools/voacap/et-voacap.sh b/overlay/etc/skel/.local/share/emcomm-tools/voacap/et-voacap.sh index 5076984..cfc15df 100755 --- a/overlay/etc/skel/.local/share/emcomm-tools/voacap/et-voacap.sh +++ b/overlay/etc/skel/.local/share/emcomm-tools/voacap/et-voacap.sh @@ -153,9 +153,11 @@ MONTH_FMT=$(date +'%-m.00') ####################################################################### if ! result=$(lookup_station "$tx_type" "$tx_value" tx-station.json); then - echo "Try specifying a grid or lat,lon for the transmitting station." - echo " --tx-grid GRID Transmitting station Maidenhead grid" - echo " --tx-latlon LAT,LON Transmitting station coordinates in decimal degrees" + if [[ "$tx_type" == "call" ]]; then + echo "Try specifying a grid or lat,lon for the transmitting station." + echo " --tx-grid GRID Transmitting station Maidenhead grid" + echo " --tx-latlon LAT,LON Transmitting station coordinates in decimal degrees" + fi exit 1 fi read TL TK <<< "$result" @@ -176,9 +178,11 @@ TLO=$( awk -v n1=$TK1 -v n2=0 'BEGIN {if (n1