Skip to content

Commit

Permalink
Merge pull request #1280 from sergey-safarov/alpine
Browse files Browse the repository at this point in the history
pkg/kamailio/alpine_docker: Added support ssh git repo url
  • Loading branch information
miconda committed Oct 25, 2017
2 parents ba7f663 + d63d33b commit d581c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kamailio/alpine_docker/build.sh
Expand Up @@ -23,7 +23,7 @@ apk add --no-cache abuild git gcc build-base bison db-dev flex expat-dev perl-de

build_and_install(){
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|^git@github.com:||' -e 's|/.*\.git||')
if [ ! -z "$REPO_OWNER" ]; then
sed -i -e "s:github.com/kamailio:github.com/$REPO_OWNER:" /usr/src/kamailio/pkg/kamailio/alpine/APKBUILD
fi
Expand Down

0 comments on commit d581c00

Please sign in to comment.