Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit e9251c4

Browse files
author
Joshua Thompson-Lindley
authored
Update new_version.sh (#30)
Signed-off-by: Joshua Thompson-Lindley <[email protected]>
2 parents 5ea4a1c + f56210b commit e9251c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ci/scripts/new_version.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@ REPO="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
77
REPO=$(dirname "$REPO../")
88
REPO=$(dirname "$REPO../")
99

10+
ARG=$1
11+
1012
function auto_increment() {
1113
VERSION=$(python3 $REPO/ci/scripts/increment_version.py)
1214
sed "s/__version__ = .*/__version__ = '"$VERSION"'/g" -i $REPO/src/flask_openapi/__init__.py
1315
}
1416

1517
function increment_manually() {
16-
VERSION=$1
18+
echo $ARG
19+
VERSION=$ARG
1720
sed "s/__version__ = .*/__version__ = '"$VERSION"'/g" -i $REPO/src/flask_openapi/__init__.py
1821
}
1922

2023

21-
if [ $1 = 'auto_increment' ]; then
24+
if [ $ARG = 'auto_increment' ]; then
2225
auto_increment
2326
else
2427
increment_manually

0 commit comments

Comments
 (0)