From 7d42d26fe9c59569e4ef37e91707cd6e7209f5a8 Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Mon, 20 Jun 2016 12:02:55 -0700 Subject: [PATCH] quote dir path --- src/node/platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/platform.cpp b/src/node/platform.cpp index ae382c70..3915e87e 100644 --- a/src/node/platform.cpp +++ b/src/node/platform.cpp @@ -58,7 +58,7 @@ void copy_bundled_realm_files() void remove_realm_files_from_directory(const std::string &dir_path) { - std::string delete_realms = "rm -rf " + dir_path + "/*.realm*"; + std::string delete_realms = "rm -rf '" + dir_path + "'/*.realm*"; system(delete_realms.c_str()); }