Add a helper script for bulk updating component sha's

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
This commit is contained in:
Ian Campbell 2017-07-06 16:15:14 +01:00 committed by Ian Campbell
parent a82ec03120
commit 0c6af4b3be

10
scripts/update-component-sha.sh Executable file
View 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"