mirror of
https://github.com/AG7GN/nexus-utilities.git
synced 2025-05-16 14:40:09 -07:00
Update install_wecg.sh
This commit is contained in:
parent
375f4b143e
commit
729001738f
@ -45,8 +45,8 @@ function Die () {
|
|||||||
|
|
||||||
# Validate input
|
# Validate input
|
||||||
RE="^[0-9]+([.][0-9]+)?$"
|
RE="^[0-9]+([.][0-9]+)?$"
|
||||||
[[ $2 =~ $RE ]] || "ERROR: Arg 2: $2 is not a frequency"
|
[[ $2 =~ $RE ]] || Die "ERROR: Arg 2: $2 is not a frequency"
|
||||||
echo "Arg1='$1', Arg2='$2', Arg3='$3', Arg4='$4'"
|
# echo "Arg1='$1', Arg2='$2', Arg3='$3', Arg4='$4'"
|
||||||
if [[ ! -z $4 ]]
|
if [[ ! -z $4 ]]
|
||||||
then
|
then
|
||||||
[[ $4 =~ $RE ]] || Die "ERROR: Arg 4: $4 is not a frequency"
|
[[ $4 =~ $RE ]] || Die "ERROR: Arg 4: $4 is not a frequency"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user