Changeset 5403 for BOL


Ignore:
Timestamp:
Dec 11, 2024, 4:38:41 PM (5 weeks ago)
Author:
abarral
Message:

Fix bug if nc-config & nf-config paths are different

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r5399 r5403  
    539539    nc_path=$(nc-config --prefix)
    540540    nf_path=$(nf-config --prefix)
    541     env_msg="export PATH=\"$nc_path/bin:\$PATH\""
     541    env_msg="export PATH=\"$nc_path/bin"
    542542    if [[ $nf_path != "$nc_path" ]]; then
    543       env_msg="export PATH=\"$nf_path/bin:$env_msg\""
    544     fi
     543      env_msg="$env_msg:$nf_path/bin"
     544    fi
     545    env_msg="$env_msg:$PATH\""
    545546    env_msg_tail="# netcdf bin path auto-added by install_lmdz.sh"
    546547    env_msg="$env_msg $env_msg_tail"
Note: See TracChangeset for help on using the changeset viewer.