Missing quotes in otbenv.profile
Description
With the binaries package for OTB 9.1.0 from https://www.orfeo-toolbox.org/packages/OTB-9.1.0-Linux.tar.gz.
If lsb-release
package is not installed on the system the following errors appear:
/otb-9.1.0/otbenv.profile: line 40: lsb_release: command not found
/otb-9.1.0/otbenv.profile: line 45: [: =: unary operator expected
/otb-9.1.0/otbenv.profile: line 45: [: =: unary operator expected
/otb-9.1.0/otbenv.profile: line 45: [: =: unary operator expected
/otb-9.1.0/otbenv.profile: line 65: [: =: unary operator expected
/otb-9.1.0/otbenv.profile: line 65: [: =: unary operator expected
/otb-9.1.0/otbenv.profile: line 65: [: =: unary operator expected
These errors can be avoid by putting $OS
variable between quotes "$OS"
Steps to reproduce
Download the package, extract and run command source otbenv.profile
on a system without lsb-release
Configuration information
Ubuntu 24.04 from dockerhub, OTB 9.1.0 , binaries