Trim trailing slash from REPOSITORY_BASE before add-apt-repository
[osm/devops.git] / jenkins / common / install_common
index d9c1338..c9a80ca 100755 (executable)
@@ -45,4 +45,5 @@ key_location=$REPOSITORY_BASE/$RELEASE/$REPOSITORY_KEY
 
 curl $key_location | apt-key add -
 
-apt-get update && add-apt-repository -y "deb $REPOSITORY_BASE/$RELEASE $REPOSITORY SO UI RO osmclient openvim"
+REPOSITORY_BASE=${REPOSITORY_BASE%/}
+apt-get update && add-apt-repository -y "deb $REPOSITORY_BASE/$RELEASE $REPOSITORY SO UI RO IM osmclient openvim"