Make sure all of these move to the root of the repository first, then return to where they were afterwards, using pushd/popd. This allows them to be executed from anywhere in the repo.
		
			
				
	
	
		
			10 lines
		
	
	
		
			194 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			194 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| # Generate the Zookeeper migration files
 | |
| 
 | |
| pushd $( git rev-parse --show-toplevel ) &>/dev/null
 | |
| pushd api-daemon &>/dev/null
 | |
| ./pvcapid-manage-zk.py
 | |
| popd &>/dev/null
 | |
| popd &>/dev/null
 |