diff --git a/Packaging/Files/otbenv.bash b/Packaging/Files/otbenv.bash index f2f56b4822de33759300d8b4c0d5cde1af869d9a..a2a7906ca45cbfdcea25fedb6fddd59e993f9d3a 100644 --- a/Packaging/Files/otbenv.bash +++ b/Packaging/Files/otbenv.bash @@ -24,7 +24,7 @@ cat_path() if [ $# -eq 1 ]; then echo "$1"; exit 0; fi cur="$1" shift 1 - next="$(cat_path $@)" + next=$(cat_path "$@") if [ -z "$cur" ]; then echo "$next" elif [ -z "$next" ]; then diff --git a/Packaging/Files/otbenv.profile b/Packaging/Files/otbenv.profile index c98c77a451515aabf146a123668954b9dad91533..f46ab79bf77b65b795ca37d26e8b4c1d66c4bde3 100644 --- a/Packaging/Files/otbenv.profile +++ b/Packaging/Files/otbenv.profile @@ -25,7 +25,7 @@ cat_path() if [ $# -eq 1 ]; then echo "$1"; exit 0; fi cur="$1" shift 1 - next="$(cat_path $@)" + next=$(cat_path "$@") if [ -z "$cur" ]; then echo "$next" elif [ -z "$next" ]; then