Skip to content

Commit

Permalink
Removing left-padded zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaljovec committed Nov 22, 2019
1 parent f973735 commit c5fb0e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deploy/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set -x
GIT_HASH=$(git rev-parse --short HEAD | tr 'abcdefghijklmnopqrstuvwxyz' '12345678901234567890123456')
awk -v hash=$GIT_HASH '/^__version__ = \"/{ sub(/"$/,".dev"hash"&") }1' topopy/__init__.py > tmp && mv tmp topopy/__init__.py
TEMP_VERSION=$(grep '__version__ = ' topopy/__init__.py | cut -d = -f 2 | sed "s/\"//g" | sed 's/^[ \t]*//;s/[ \t]*$//')
TEMP_VERSION=$(expr TEMP_VERSION)
echo $TEMP_VERSION

# Build the project
Expand Down

0 comments on commit c5fb0e2

Please sign in to comment.