Browse Source

Proper string test, strip any tag

refactor-terminal
Max Prokhorov 6 years ago
parent
commit
54c0bdcdf0
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      code/build.sh

+ 4
- 3
code/build.sh View File

@ -33,9 +33,10 @@ else
git_tag=
fi
if [ ! -z $git_tag ]; then
version=${version/-dev}
sed -i -e "s@$version-dev@$version@" $version_file
if [[ -n $git_tag ]]; then
new_version=${version/-*}
sed -i -e "s@$version@$new_version@" $version_file
version=$new_version
trap "git checkout -- $version_file" EXIT
fi


Loading…
Cancel
Save