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

Update install_wecg.sh

This commit is contained in:
Steve Magnuson 2021-10-03 11:28:43 -07:00
parent 375f4b143e
commit 729001738f

View File

@ -45,8 +45,8 @@ function Die () {
# Validate input
RE="^[0-9]+([.][0-9]+)?$"
[[ $2 =~ $RE ]] || "ERROR: Arg 2: $2 is not a frequency"
echo "Arg1='$1', Arg2='$2', Arg3='$3', Arg4='$4'"
[[ $2 =~ $RE ]] || Die "ERROR: Arg 2: $2 is not a frequency"
# echo "Arg1='$1', Arg2='$2', Arg3='$3', Arg4='$4'"
if [[ ! -z $4 ]]
then
[[ $4 =~ $RE ]] || Die "ERROR: Arg 4: $4 is not a frequency"