open-horizon / anax

Horizon agent control system
https://open-horizon.github.io/docs/anax/docs/
Apache License 2.0
70 stars 99 forks source link

fix #4072 : minor_version of kubectl calculated by stripping '+' correctly #4073

Open ashutosrath opened 1 month ago

ashutosrath commented 1 month ago

Pull Request Template

Description

below calculation of minor_version of kubectl corrected. This will work for both macosx bash and other linux bash shells

minor_version=${minor_version::-1}

above code is changed to

minor_version=${minor_version::$((${#minor_version} - 1))}

Fixes: #4072

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Checked by running the agent_install.sh script in macosx bash shell

Additional Context (Please include any Screenshots/gifs if relevant)

...

Checklist: