|
@@ -23,7 +23,7 @@ apk add --no-cache abuild git gcc build-base bison db-dev flex expat-dev perl-de
|
|
|
|
|
|
build_and_install(){
|
|
build_and_install(){
|
|
cd /usr/src/kamailio
|
|
cd /usr/src/kamailio
|
|
- REPO_OWNER=$(git remote get-url origin 2> /dev/null | sed -e 's:^.*github.com/::' -e 's:/.*\.git::')
|
|
|
|
|
|
+ REPO_OWNER=$(git remote get-url origin 2> /dev/null | sed -e 's|^.*github.com/||' -e 's|^[email protected]:||' -e 's|/.*\.git||')
|
|
if [ ! -z "$REPO_OWNER" ]; then
|
|
if [ ! -z "$REPO_OWNER" ]; then
|
|
sed -i -e "s:github.com/kamailio:github.com/$REPO_OWNER:" /usr/src/kamailio/pkg/kamailio/alpine/APKBUILD
|
|
sed -i -e "s:github.com/kamailio:github.com/$REPO_OWNER:" /usr/src/kamailio/pkg/kamailio/alpine/APKBUILD
|
|
fi
|
|
fi
|