diff --git a/scripts/bump_version.sh b/scripts/bump_version.sh new file mode 100644 index 0000000000..ea46f73f72 --- /dev/null +++ b/scripts/bump_version.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + + +if [[ -z $1 ]]; +then + echo "Usage: bump_version.sh " + exit +fi + +echo "Setting Local Branch Version to $1." + +find . -name 'qlpack.yml' | grep -v './codeql_modules' | grep -v './scripts' | xargs sed -i "s/^version.*$/version: ${1}/" + +echo "Done." \ No newline at end of file