From b254d91cd0099c1e0bc15126c52bd6485575ec5a Mon Sep 17 00:00:00 2001 From: n5m <72841454+n5m@users.noreply.github.com> Date: Fri, 1 Jan 2021 18:41:49 +0000 Subject: [PATCH] reuse const (#16422) --- lib/pure/osproc.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/osproc.nim b/lib/pure/osproc.nim index 9cac8e2321..bc447eb670 100644 --- a/lib/pure/osproc.nim +++ b/lib/pure/osproc.nim @@ -981,7 +981,7 @@ elif not defined(useNimRtl): when not defined(android): "/bin/sh" else: "/system/bin/sh" data.sysCommand = useShPath - sysArgsRaw = @[data.sysCommand, "-c", command] + sysArgsRaw = @[useShPath, "-c", command] assert args.len == 0, "`args` has to be empty when using poEvalCommand." else: data.sysCommand = command