Script to change URL on file git config

pull/39/head
Juan Rocha 2017-08-10 14:24:27 +02:00
parent 4a3cbcb12d
commit 3c6a885fd0
1 changed files with 18 additions and 0 deletions

18
scripts/upgrade-url.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
oldurl_if_exists() {
if [ -d $1 ]; then
pushd $1 >/dev/null
sed -i -e 's/CASES-LU/monarc-project/g' ./.git/config $2
popd >/dev/nul
fi
}
oldurl_if_exists . $1
oldurl_if_exists module/MonarcCore $1
oldurl_if_exists module/MonarcBO $1
oldurl_if_exists module/MonarcFO $1
oldurl_if_exists node_modules/ng_backoffice $1
oldurl_if_exists node_modules/ng_client $1
oldurl_if_exists node_modules/ng_anr $1