diff options
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.nim b/src/main.nim index 52f1cb8..10829b8 100644 --- a/src/main.nim +++ b/src/main.nim @@ -90,7 +90,7 @@ proc handleSync(args: seq[Argument], config: Config): int = let printMode = args.check(%%%"print") or args.check(%%%"print-format") if currentUser.uid != 0 and config.sudoExec and not printMode: - let collectedArgs = @[sudoCmd, getAppFilename()] & + let collectedArgs = sudoPrefix & getAppFilename() & lc[x | (y <- args, x <- y.collectArg), string] execResult(collectedArgs) else: |