mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-30 18:17:53 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			296 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			296 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| # Example usage: ./scripts/prepare_new_docs v1.3 v1.4
 | |
| 
 | |
| OLD_VERION=$1
 | |
| NEW_VERSION=$2
 | |
| 
 | |
| function replace_version {
 | |
|   while IFS= read -r file
 | |
|   do
 | |
|     sed -i '' -e 's/'$OLD_VERION'/'$NEW_VERSION'/g' "$file"
 | |
|   done
 | |
| }
 | |
| 
 | |
| find openmetadata-docs/content/"$2.x"/ -type f | replace_version $1 $2
 | 
