Browse Source

Merge pull request #14165 from richardkchapman/ecl-bundle-space

HPCC-24729 ecl bundle tool fails if home directory name contains a space

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Merged-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 4 years ago
parent
commit
9a8b04ca57
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ecl/ecl-bundle/ecl-bundle.cpp

+ 2 - 2
ecl/ecl-bundle/ecl-bundle.cpp

@@ -379,9 +379,9 @@ public:
                 if (!path.length())
                 if (!path.length())
                     path.append(".");
                     path.append(".");
                 if (bundleFile->isDirectory()==fileBool::foundYes && !directoryContainsBundleFile(bundleFile))
                 if (bundleFile->isDirectory()==fileBool::foundYes && !directoryContainsBundleFile(bundleFile))
-                    includeOpt.appendf(" -I%s", bundle);
+                    includeOpt.appendf(" \"-I%s\"", bundle);
                 else
                 else
-                    includeOpt.appendf(" -I%s", path.str());
+                    includeOpt.appendf(" \"-I%s\"", path.str());
             }
             }
             else
             else
                 throw MakeStringException(0, "File not found");
                 throw MakeStringException(0, "File not found");