mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 09:16:29 +00:00
Add a helper script for bulk updating component sha's
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
parent
a82ec03120
commit
0c6af4b3be
10
scripts/update-component-sha.sh
Executable file
10
scripts/update-component-sha.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
if [ $# -ne 2 ] ; then
|
||||
echo "Need <OLD> and <NEW> as arguments" >&2
|
||||
exit 1
|
||||
fi
|
||||
old=$1
|
||||
new=$2
|
||||
|
||||
git grep -l "$old" | xargs sed -i -e "s,$old,$new,g"
|
Loading…
Reference in New Issue
Block a user