1
0
mirror of https://github.com/AG7GN/nexus-utilities.git synced 2025-05-27 20:00:12 -07:00

Update install_wecg.sh

This commit is contained in:
Steve Magnuson 2021-09-10 12:55:10 -07:00
parent 8f2fbb3169
commit 70173c6c7f

View File

@ -45,8 +45,8 @@ function Die () {
# Validate input
RE="^[0-9]+([.][0-9]+)?$"
[[ $2 =~ $RE ]] || "ERROR: $2 is not a frequency"
[[ ! -z $4 && $4 =~ $RE ]] || Die "ERROR: $4 is not a frequency"
[[ $2 =~ $RE ]] || "ERROR: Arg 2: $2 is not a frequency"
[[ ! -z $4 && $4 =~ $RE ]] || Die "ERROR: Arg 4: $4 is not a frequency"
FLDIGI_FREQ="$2"
[[ ! -z $4 ]] && RESTORE_FREQ="$4" || RESTORE_FREQ=""