Script to change URL on file git config
							parent
							
								
									4a3cbcb12d
								
							
						
					
					
						commit
						3c6a885fd0
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
		Loading…
	
		Reference in New Issue