monanadmin / scripts_CD-CT

Scripts for MONAN continuous developments and continuous tests.
0 stars 2 forks source link

Bug - tag_or_branch_name in 1.install #5

Closed joaomas closed 4 months ago

joaomas commented 4 months ago

@deniseiras @carlosrenatosouza2 @egkhamis

When used "release/0.5.0" like second parameter in the first script, example:

$ ./1.install_monan.bash https://github.com/monanadmin/MONAN-Model.git release/0.5.0

The script created "sources/MONAN_release" without number of release.

Testing possible solution with 'sed' in the 1.install_monan.bash script.

Before:

MONANDIR=${SOURCES}/MONAN-Model_${tag_or_branch_name_MONAN}
CONVERT_MPAS_DIR=${SOURCES}/convert_mpas_${tag_or_branch_name_CONVERT_MPAS}

After:

MONANDIR=${SOURCES}/MONAN-Model_$(echo ${tag_or_branch_name_MONAN} | sed -e "s/\//_/g")
CONVERT_MPAS_DIR=${SOURCES}/convert_mpas_$(echo ${tag_or_branch_name_CONVERT_MPAS} | sed -e "s/\//_/g")
joaomas commented 4 months ago

It's not a problem. Closing the issue.