Skip to content

Commit 964a201

Browse files
committed
update path
1 parent 6638164 commit 964a201

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ install:
2020

2121
script:
2222
- chmod ugo+x ./url.sh ./build-c-new.sh
23-
- ./build-c-new.sh
23+
# - ./build-c-new.sh
2424
- ./url.sh
2525
- popd
2626
after_script:

samples-recipes/build-c-new.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
namefolder=${name:14} ;
55

66
function create_dest_directory ()
7-
{
8-
pwd :
9-
ls :
7+
{
8+
109
cd builds ;
1110
if [ -n "${TRAVIS_TAG}" ]; then
1211
destFolder="$namefolder-${TRAVIS_TAG}"

samples-recipes/url.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,14 @@
6060
#checking if url contains http or not
6161
if [[ "$provider_url" =~ $regex ]] ; then
6262
path_url=$provider_url ;
63+
if [[ ! $provider_url == *[.git] ]] ; then
64+
path_url=$path_url.git ;
65+
fi
6366
fname=$(echo $path_url | rev | cut -d '/' -f 1 | rev);
67+
fname=$(echo $fname | cut -f1 -d '.');
6468
echo $fname
6569
pushd $GOPATH/src/github.com/TIBCOSoftware ;
66-
git clone $provider_url.git "$fname" ;
70+
git clone $path_url "$fname" ;
6771
popd ;
6872
#publish_gateway ;
6973
publish=$(cat $GOPATH/src/github.com/TIBCOSoftware/mashling-recipes/recipe_registry.json | jq $xpath_publish) ;
@@ -75,8 +79,8 @@
7579
echo "${Gateway[$x]}" ;
7680
mashling create -f $GOPATH/src/github.com/TIBCOSoftware/"$fname"/"${Gateway[$x]}"/"${Gateway[$x]}".json "${Gateway[$x]}";
7781
package_gateway ;
78-
done
79-
82+
done
83+
8084
else
8185
echo "alert 3" ;
8286
publish=$(cat $GOPATH/src/github.com/TIBCOSoftware/mashling-recipes/recipe_registry.json | jq $xpath_publish) ;

0 commit comments

Comments
 (0)