1
0
mirror of https://github.com/AG7GN/nexus-utilities.git synced 2025-05-16 14:40:09 -07:00

Improved error reporting in install_wecg.sh

This commit is contained in:
Steve Magnuson 2020-11-18 16:15:29 -08:00
parent 84bc27635e
commit 89a9e4714a
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION="1.0.3" VERSION="1.0.4"
# This script installs the scripts and desktop files that customize a Nexus DR-X # This script installs the scripts and desktop files that customize a Nexus DR-X
# Raspberry Pi so it can be used for remote access by WECG members. # Raspberry Pi so it can be used for remote access by WECG members.
@ -44,7 +44,7 @@ function Die () {
# Validate input # Validate input
RE="^[0-9]+([.][0-9]+)?$" RE="^[0-9]+([.][0-9]+)?$"
[[ $2 =~ $RE && $4 =~ $RE ]] || Die "One or both frequencies supplied are not numbers" [[ $2 =~ $RE && $4 =~ $RE ]] || Die "ERROR: One or both frequencies supplied are not numbers"
FLDIGI_FREQ="$2" FLDIGI_FREQ="$2"
RESTORE_FREQ="$4" RESTORE_FREQ="$4"
case ${1,,} in case ${1,,} in
@ -52,7 +52,7 @@ case ${1,,} in
SIDE="${1,,}" SIDE="${1,,}"
;; ;;
*) *)
Die "First argument must be left or right" Die "ERROR: First argument must be left or right"
;; ;;
esac esac
case ${3,,} in case ${3,,} in
@ -60,7 +60,7 @@ case ${3,,} in
RESTORE_APP="${3,,}" RESTORE_APP="${3,,}"
;; ;;
*) *)
Die "First argument must be left or right" Die "ERROR: First argument must be left or right"
;; ;;
esac esac

View File

@ -1 +1 @@
VERSION="2.3.31" VERSION="2.3.32"