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

Update location of config.json for new version of pat

This commit is contained in:
Steve Magnuson 2021-11-29 17:45:33 -08:00
parent 534b521653
commit a70e7e2e15
2 changed files with 9 additions and 4 deletions

View File

@ -18,7 +18,7 @@
#% #%
#================================================================ #================================================================
#- IMPLEMENTATION #- IMPLEMENTATION
#- version ${SCRIPT_NAME} 1.4.3 #- version ${SCRIPT_NAME} 1.4.4
#- author Steve Magnuson, AG7GN #- author Steve Magnuson, AG7GN
#- license CC-BY-SA Creative Commons License #- license CC-BY-SA Creative Commons License
#- script_id 0 #- script_id 0
@ -27,6 +27,7 @@
# HISTORY # HISTORY
# 20200507 : Steve Magnuson : Script creation. # 20200507 : Steve Magnuson : Script creation.
# 20200718 : Steve Magnuson : Allow pactor, winmor, ardop aliases # 20200718 : Steve Magnuson : Allow pactor, winmor, ardop aliases
# 20211129 : Steve Magnuson : Change location of pat configuration
# #
#================================================================ #================================================================
# DEBUG OPTION # DEBUG OPTION
@ -175,7 +176,8 @@ SCRIPT_HEADSIZE=$(grep -sn "^# END_OF_HEADER" ${0} | head -1 | cut -f1 -d:)
VERSION="$(ScriptInfo version | grep version | tr -s ' ' | cut -d' ' -f 4)" VERSION="$(ScriptInfo version | grep version | tr -s ' ' | cut -d' ' -f 4)"
TITLE="Find RMS Stations $VERSION" TITLE="Find RMS Stations $VERSION"
PAT_CONFIG="$HOME/.wl2k/config.json" PAT_VERSION="$(pat version | cut -d' ' -f2)"
[[ $PAT_VERSION =~ v0.1[01]. ]] && PAT_CONFIG="$HOME/.wl2k/config.json" || PAT_CONFIG="$HOME/.config/pat/config.json"
export PAT_CONFIG=$PAT_CONFIG export PAT_CONFIG=$PAT_CONFIG
export find_cmd='@bash -c "runFind %1 %2 %3 %4"' export find_cmd='@bash -c "runFind %1 %2 %3 %4"'
export view_remove_cmd='bash -c "viewDeleteAliases"' export view_remove_cmd='bash -c "viewDeleteAliases"'

View File

@ -14,7 +14,7 @@
#% #%
#================================================================ #================================================================
#- IMPLEMENTATION #- IMPLEMENTATION
#- version ${SCRIPT_NAME} 1.0.4 #- version ${SCRIPT_NAME} 1.0.5
#- author Steve Magnuson, AG7GN #- author Steve Magnuson, AG7GN
#- license CC-BY-SA Creative Commons License #- license CC-BY-SA Creative Commons License
#- script_id 0 #- script_id 0
@ -23,6 +23,8 @@
# HISTORY # HISTORY
# 20200609 : Steve Magnuson : Script creation. # 20200609 : Steve Magnuson : Script creation.
# 20200718 : Steve Magnuson : Delete unused function. # 20200718 : Steve Magnuson : Delete unused function.
# 20211129 : Steve Magnuson : Updated to suppor new locations
# for pat confuguration
# #
#================================================================ #================================================================
# DEBUG OPTION # DEBUG OPTION
@ -206,7 +208,8 @@ TITLE="Hamlib Rig Control (rigctld) Configuration $VERSION"
CONFIG_FILE="$HOME/rigctld.conf" CONFIG_FILE="$HOME/rigctld.conf"
MESSAGE="Hamlib rigctld Configuration" MESSAGE="Hamlib rigctld Configuration"
PAT_CONFIG="$HOME/.wl2k/config.json" PAT_VERSION="$(pat version | cut -d' ' -f2)"
[[ $PAT_VERSION =~ v0.1[01]. ]] && PAT_CONFIG="$HOME/.wl2k/config.json" || PAT_CONFIG="$HOME/.config/pat/config.json"
export PAT_CONFIG=$PAT_CONFIG export PAT_CONFIG=$PAT_CONFIG
export find_cmd='@bash -c "runFind "%1""' export find_cmd='@bash -c "runFind "%1""'
export view_remove_cmd='bash -c "viewDeleteAliases"' export view_remove_cmd='bash -c "viewDeleteAliases"'