Skip to content

Commit

Permalink
We ran this script in K10 with some specific dirs (kanisterio#775)
Browse files Browse the repository at this point in the history
which is not ideal, there are chances that some
files that we dont know of have these versions
now we just ignore mod,bin dirs and binary files
and running the script on the entire K10 repo.
We already introduced the issue by not running it
in the demos dir.
  • Loading branch information
viveksinghggits authored Sep 22, 2020
1 parent 4fc77a9 commit 439f182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ main() {
pkgs=( "$@" )
fi
# -F matches for exact words, not regular expression (-E), that is what required here
grep -F "${prev}" -r "${pkgs[@]}" | cut -d ':' -f 1 | uniq | xargs sed -ri "s/${prev}/${next//./\\.}/g"
grep -F "${prev}" -Ir "${pkgs[@]}" --exclude-dir={mod,bin} | cut -d ':' -f 1 | uniq | xargs sed -ri "s/${prev}/${next//./\\.}/g"
}

main $@
Expand Down

0 comments on commit 439f182

Please sign in to comment.