summaryrefslogtreecommitdiff
path: root/internal/server
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-02-16 13:58:26 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-02-16 13:58:26 +0000
commit6bca637513e065a33cadaccad97ada25eb7a6b00 (patch)
treed08a4c8ee40aba985c82184c20606de7debd42b1 /internal/server
parent86ecab818a6089f6da7267463edbc5300ddc155c (diff)
can upload script via drun
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/handlers/runcommand.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/handlers/runcommand.go b/internal/server/handlers/runcommand.go
index 9dc878f..120c402 100644
--- a/internal/server/handlers/runcommand.go
+++ b/internal/server/handlers/runcommand.go
@@ -32,7 +32,7 @@ func (r runCommand) Start(ctx context.Context, argc int, args []string) {
}
command := strings.Join(args[1:], " ")
- if strings.Contains(command, ";") {
+ if strings.Contains(command, ";") || strings.Contains(command, "\n") {
r.startScript(ctx, command)
return
}