From a070ad4720c28fae349e1d2c1bc249f06d5a0c5a Mon Sep 17 00:00:00 2001 From: "John L. Singleton" Date: Wed, 3 Aug 2022 15:33:30 -0400 Subject: [PATCH] new script for bumping versions --- scripts/bump_version.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/bump_version.sh 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