From 13b4d4b019fe12b43cfcb8386c48cb1350bb460e Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Thu, 2 Feb 2023 11:00:03 -0600 Subject: [PATCH] fix #477 --- functions/additional.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/additional.function b/functions/additional.function index 177a6cb..a94a224 100644 --- a/functions/additional.function +++ b/functions/additional.function @@ -51,7 +51,7 @@ PAT() { sudo systemctl start pat@${WHO} sudo systemctl enable pat@${WHO} cd ${DIR} - PAT_VERSION=$(pat version | awk '{print $2}' | sed 's/v0.//;s/.0//') + PAT_VERSION=$(pat version | awk '{print $2}' | awk -F "." '{print $2}') #The Pat Winlink config file will change location in version 0.12. The below if statement #checks to see which version is installed. #check to see if pat version is 12 or greater. Change config file location