Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump_version returns incorrect result #6

Open
polRk opened this issue Jan 5, 2021 · 1 comment
Open

bump_version returns incorrect result #6

polRk opened this issue Jan 5, 2021 · 1 comment

Comments

@polRk
Copy link

polRk commented Jan 5, 2021

./semver.sh "1.0.0" bump_major
1.0.0
@martinhbramwell
Copy link

Please run these commands and compare with the results below:

lsb_release -a
bash --version
declare MAJOR=1
echo $((MAJOR + 1))
erpdev@fossa:~/projects/semver_shell$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal
erpdev@fossa:~/projects/semver_shell$ bash --version
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
erpdev@fossa:~/projects/semver_shell$ 
erpdev@fossa:~/projects/semver_shell$ declare  MAJOR=1
erpdev@fossa:~/projects/semver_shell$ echo $((MAJOR + 1))
2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants