From 63d979ae970a9fd7542909d834f2eaf32df60017 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Fri, 17 Jul 2020 10:31:17 -0700 Subject: [PATCH] Added ability to run zip files from command line --- meshservice/ServiceMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshservice/ServiceMain.c b/meshservice/ServiceMain.c index 95fcb05..07a9870 100644 --- a/meshservice/ServiceMain.c +++ b/meshservice/ServiceMain.c @@ -877,7 +877,7 @@ int wmain(int argc, char* wargv[]) if (RunService(argc, argv) == 0 && GetLastError() == ERROR_FAILED_SERVICE_CONTROLLER_CONNECT) { // Not running as service, so check if we need to run as a script engine - if (argc >= 2 && ILibString_EndsWith(argv[1], -1, ".js", 3) != 0) + if (argc >= 2 && (ILibString_EndsWith(argv[1], -1, ".js", 3) != 0 || ILibString_EndsWith(argv[1], -1, ".zip", 4) != 0)) { SetConsoleCtrlHandler((PHANDLER_ROUTINE)CtrlHandler, TRUE); // Set SIGNAL on windows to listen for Ctrl-C