-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: NXP-6.0, NXP-7.x, NXP-8.x
-
Component/s: Continuous Integration
-
Epic Link:
-
Sprint:nxsupport 9.3.9
-
Story Points:0
NEXT_TAG=$(printf "%02d" $(($(expr ${CURRENT_TAG}) + 1)))
The expr expression can show an odd behavior when the value of CURRENT_TAG is 08 depending on the OS and especially on linuces.
Using the alternate BASH expression will avoid this:
NEXT_TAG=$(printf "%02d" $(( ${CURRENT_TAG#"${CURRENT_TAG%%[!0]*}"} + 1)))