mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
update-component-sha.sh: simplify the quoting on sed expression
I think the intention was to use "" for bits with substititions and '' for bits
without, but that makes it hard to read and the bits in '' are safe in the ""
context anyway.
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:
parent
74fc1db331
commit
411698c16e
@ -69,7 +69,7 @@ case "$1" in
|
||||
hash=$3
|
||||
;;
|
||||
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 "s,$image:[[:xdigit:]]\{40\},$image:$hash,g"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown mode $1"
|
||||
|
Loading…
Reference in New Issue
Block a user