Cmd Type script now correctly appends arguments
This commit is contained in:
0
pkg/backy/allowedexternaldirectives_enumer.go
Normal file → Executable file
0
pkg/backy/allowedexternaldirectives_enumer.go
Normal file → Executable file
0
pkg/backy/backy.go
Normal file → Executable file
0
pkg/backy/backy.go
Normal file → Executable file
0
pkg/backy/backy_test.go
Normal file → Executable file
0
pkg/backy/backy_test.go
Normal file → Executable file
0
pkg/backy/commandtype_enumer.go
Normal file → Executable file
0
pkg/backy/commandtype_enumer.go
Normal file → Executable file
0
pkg/backy/config.go
Normal file → Executable file
0
pkg/backy/config.go
Normal file → Executable file
0
pkg/backy/cron.go
Normal file → Executable file
0
pkg/backy/cron.go
Normal file → Executable file
0
pkg/backy/lineinfile.go
Normal file → Executable file
0
pkg/backy/lineinfile.go
Normal file → Executable file
0
pkg/backy/list.go
Normal file → Executable file
0
pkg/backy/list.go
Normal file → Executable file
0
pkg/backy/metrics.go
Normal file → Executable file
0
pkg/backy/metrics.go
Normal file → Executable file
0
pkg/backy/metrics_test.go
Normal file → Executable file
0
pkg/backy/metrics_test.go
Normal file → Executable file
0
pkg/backy/notification.go
Normal file → Executable file
0
pkg/backy/notification.go
Normal file → Executable file
0
pkg/backy/packageoperation_enumer.go
Normal file → Executable file
0
pkg/backy/packageoperation_enumer.go
Normal file → Executable file
0
pkg/backy/planForHosts.md
Normal file → Executable file
0
pkg/backy/planForHosts.md
Normal file → Executable file
6
pkg/backy/ssh.go
Normal file → Executable file
6
pkg/backy/ssh.go
Normal file → Executable file
@@ -678,7 +678,11 @@ func (command *Command) prepareScriptBuffer() (*bytes.Buffer, error) {
|
||||
buffer.WriteByte('\n')
|
||||
}
|
||||
|
||||
buffer.WriteString(command.Cmd + "\n")
|
||||
buffer.WriteString(command.Cmd)
|
||||
for _, arg := range command.Args {
|
||||
buffer.WriteString(" " + arg)
|
||||
}
|
||||
buffer.WriteByte('\n')
|
||||
return &buffer, nil
|
||||
}
|
||||
|
||||
|
||||
0
pkg/backy/templates/error.txt
Normal file → Executable file
0
pkg/backy/templates/error.txt
Normal file → Executable file
0
pkg/backy/templates/success.txt
Normal file → Executable file
0
pkg/backy/templates/success.txt
Normal file → Executable file
0
pkg/backy/tools.go
Normal file → Executable file
0
pkg/backy/tools.go
Normal file → Executable file
0
pkg/backy/types.go
Normal file → Executable file
0
pkg/backy/types.go
Normal file → Executable file
0
pkg/backy/utils.go
Normal file → Executable file
0
pkg/backy/utils.go
Normal file → Executable file
0
pkg/logging/logging.go
Normal file → Executable file
0
pkg/logging/logging.go
Normal file → Executable file
0
pkg/pkgman/apt/apt.go
Normal file → Executable file
0
pkg/pkgman/apt/apt.go
Normal file → Executable file
0
pkg/pkgman/common/options.go
Normal file → Executable file
0
pkg/pkgman/common/options.go
Normal file → Executable file
0
pkg/pkgman/dnf/dnf.go
Normal file → Executable file
0
pkg/pkgman/dnf/dnf.go
Normal file → Executable file
0
pkg/pkgman/pkgman.go
Normal file → Executable file
0
pkg/pkgman/pkgman.go
Normal file → Executable file
0
pkg/pkgman/yum/yum.go
Normal file → Executable file
0
pkg/pkgman/yum/yum.go
Normal file → Executable file
0
pkg/remotefetcher/cache.go
Normal file → Executable file
0
pkg/remotefetcher/cache.go
Normal file → Executable file
0
pkg/remotefetcher/configfetcher.go
Normal file → Executable file
0
pkg/remotefetcher/configfetcher.go
Normal file → Executable file
0
pkg/remotefetcher/http.go
Normal file → Executable file
0
pkg/remotefetcher/http.go
Normal file → Executable file
0
pkg/remotefetcher/local.go
Normal file → Executable file
0
pkg/remotefetcher/local.go
Normal file → Executable file
0
pkg/remotefetcher/options.go
Normal file → Executable file
0
pkg/remotefetcher/options.go
Normal file → Executable file
0
pkg/remotefetcher/s3.go
Normal file → Executable file
0
pkg/remotefetcher/s3.go
Normal file → Executable file
0
pkg/usermanager/common/options.go
Normal file → Executable file
0
pkg/usermanager/common/options.go
Normal file → Executable file
0
pkg/usermanager/linux/linux.go
Normal file → Executable file
0
pkg/usermanager/linux/linux.go
Normal file → Executable file
0
pkg/usermanager/userman.go
Normal file → Executable file
0
pkg/usermanager/userman.go
Normal file → Executable file
Reference in New Issue
Block a user