From 9b60a54de177c2ab50579d4d4750dc79b169b80a Mon Sep 17 00:00:00 2001 From: neher-igel Date: Mon, 9 Sep 2024 17:27:15 -0600 Subject: [PATCH] Zoho Assist Build Script Zoho Assist Build Script --- .../Apps/Zoho_Assist/build/build-zohoassist-cp.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CP_Source/Apps/Zoho_Assist/build/build-zohoassist-cp.sh b/CP_Source/Apps/Zoho_Assist/build/build-zohoassist-cp.sh index ef914b57..b7f2160c 100755 --- a/CP_Source/Apps/Zoho_Assist/build/build-zohoassist-cp.sh +++ b/CP_Source/Apps/Zoho_Assist/build/build-zohoassist-cp.sh @@ -1,6 +1,6 @@ #!/bin/bash -#set -x -#trap read debug +set -x +trap read debug # Creating an IGELOS CP ## Development machine Ubuntu (OS11.09+ = 22.04; OS12 = 20.04) @@ -51,7 +51,7 @@ done mkdir -p custom/${CP} # start extract -dpkg -x "${GETVERSION_FILE}" custom/${CP} +dpkg -x ${GETVERSION_FILE} custom/${CP} # end extract find . -name "*.deb" | while read LINE @@ -102,11 +102,11 @@ cd custom # edit inf file for version number mkdir getversion cd getversion -ar -x "${GETVERSION_FILE}" -tar xf control.tar* ./control ./postinst +ar -x ${GETVERSION_FILE} +tar xf control.tar* VERSION=$(grep Version control | cut -d " " -f 2) # copy postinst to CP -mv postinst ../${CP}/usr/local/ZohoAssist/igel_postinst.sh +cp postinst ../${CP}/usr/local/ZohoAssist/igel_postinst.sh #echo "Version is: " ${VERSION} cd .. sed -i "/^version=/c version=\"${VERSION}\"" target/${CP}.inf