mirror of
				https://github.com/optim-enterprises-bv/openwrt-ipq.git
				synced 2025-10-30 17:58:28 +00:00 
			
		
		
		
	scripts/kernel_bump: Always drop v prefix
Naivly and lazyly the leading v was only dropped from optarg, not from any environment variable. Lets do this properly and ensure a leading 'v' is always dropped. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
This commit is contained in:
		 Olliver Schinagl
					Olliver Schinagl
				
			
				
					committed by
					
						 Robert Marko
						Robert Marko
					
				
			
			
				
	
			
			
			 Robert Marko
						Robert Marko
					
				
			
						parent
						
							1bbc249266
						
					
				
				
					commit
					03f2f530a0
				
			| @@ -77,6 +77,9 @@ init() | |||||||
| 	initial_branch="$(git rev-parse --abbrev-ref HEAD)" | 	initial_branch="$(git rev-parse --abbrev-ref HEAD)" | ||||||
| 	initial_commitish="$(git rev-parse HEAD)" | 	initial_commitish="$(git rev-parse HEAD)" | ||||||
|  |  | ||||||
|  | 	source_version="${source_version#v}" | ||||||
|  | 	target_version="${target_version#v}" | ||||||
|  |  | ||||||
| 	trap cleanup EXIT HUP INT QUIT ABRT ALRM TERM | 	trap cleanup EXIT HUP INT QUIT ABRT ALRM TERM | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -180,10 +183,10 @@ main() | |||||||
| 			platform_name="${OPTARG}" | 			platform_name="${OPTARG}" | ||||||
| 			;; | 			;; | ||||||
| 		's') | 		's') | ||||||
| 			source_version="${OPTARG#v}" | 			source_version="${OPTARG}" | ||||||
| 			;; | 			;; | ||||||
| 		't') | 		't') | ||||||
| 			target_version="${OPTARG#v}" | 			target_version="${OPTARG}" | ||||||
| 			;; | 			;; | ||||||
| 		':') | 		':') | ||||||
| 			e_err "Option -${OPTARG} requires an argument." | 			e_err "Option -${OPTARG} requires an argument." | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user