Skip to content

Commit 224670c

Browse files
authored
Merge pull request #40 from jsinglet/jsinglet/utility-bump
new script for bumping versions
2 parents 5e85426 + 8be8d88 commit 224670c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

scripts/bump_version.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
4+
if [[ -z $1 ]];
5+
then
6+
echo "Usage: bump_version.sh <new_version>"
7+
exit
8+
fi
9+
10+
echo "Setting Local Branch Version to $1."
11+
12+
find . -name 'qlpack.yml' | grep -v './codeql_modules' | grep -v './scripts' | xargs sed -i "s/^version.*$/version: ${1}/"
13+
14+
echo "Done."

0 commit comments

Comments
 (0)