From f32430b587f2373730fc5e0a2f0d10a250e8f9ae Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 22 Feb 2026 00:02:01 -0700 Subject: [PATCH] Add the -$switch_version postfix and use it consistently --- debian/resources/switch/source-release.sh | 4 ++-- debian/resources/switch/source-sounds.sh | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/debian/resources/switch/source-release.sh b/debian/resources/switch/source-release.sh index be21e7b..03c946d 100755 --- a/debian/resources/switch/source-release.sh +++ b/debian/resources/switch/source-release.sh @@ -95,8 +95,8 @@ if [ ."$os_codename" = ."trixie" ] || [ ."$switch_branch" = ."master" ]; then #master branch echo "Using version master" rm -r /usr/src/freeswitch - git clone https://github.com/signalwire/freeswitch.git - cd /usr/src/freeswitch + git clone https://github.com/signalwire/freeswitch.git freeswitch-$switch_version + cd /usr/src/freeswitch-$switch_version git remote add fusionpbx https://github.com/fusionpbx/freeswitch.git git fetch fusionpbx diff --git a/debian/resources/switch/source-sounds.sh b/debian/resources/switch/source-sounds.sh index 73f8e99..420c6c1 100755 --- a/debian/resources/switch/source-sounds.sh +++ b/debian/resources/switch/source-sounds.sh @@ -8,11 +8,7 @@ cd "$(dirname "$0")" . ../environment.sh # change the working directory -if [ ."$switch_branch" = ."master" ]; then - cd /usr/src/freeswitch -else - cd /usr/src/freeswitch-$switch_version -fi +cd /usr/src/freeswitch-$switch_version # compile and install the sounds make sounds-install moh-install