mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 12:36:24 +00:00 
			
		
		
		
	update-component-sha.sh: use extended/modern regex for a complex case.
Right now the difference is rather minor, but I'm about to make this case more
complicated.
Running:
    ./scripts/update-component-sha.sh --image linuxkit/runc 100d0d046c
Still DTRT and updates runc to that (bogus) sha.
Signed-off-by: Ian Campbell <ijc@docker.com>
			
			
This commit is contained in:
		| @@ -69,7 +69,7 @@ case "$1" in | |||||||
| 		hash=$3 | 		hash=$3 | ||||||
| 		;; | 		;; | ||||||
| 	    esac | 	    esac | ||||||
|         git grep -E -l "\b$image:" | xargs sed -i.bak -e "s,$image:[[:xdigit:]]\{40\},$image:$hash,g" |         git grep -E -l "\b$image:" | xargs sed -i.bak -E -e "s,$image:[[:xdigit:]]{40},$image:$hash,g" | ||||||
|         ;; |         ;; | ||||||
|     *) |     *) | ||||||
|         echo "Unknown mode $1" |         echo "Unknown mode $1" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user