diff --git a/SuperBuild/Packaging/InstallSupportFiles.cmake b/SuperBuild/Packaging/InstallSupportFiles.cmake
index 1b1422c117881840451aac24cb50b8aeb6df1686..7edf0e3851ecb5aaeb2099de78f3293fce5c96e6 100644
--- a/SuperBuild/Packaging/InstallSupportFiles.cmake
+++ b/SuperBuild/Packaging/InstallSupportFiles.cmake
@@ -239,8 +239,7 @@ function(func_install_otb_support_files)
       DESTINATION ${PKG_STAGE_DIR}
       RENAME otbenv.sh
     )
-    endforeach()
-
+    
     #we need startup files for mapla monteverdi in the root directory
     #For Unixes, we make them inside pkgsetup script!
     foreach(exe_file mapla monteverdi)