master
go 11 lines 333 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build !windows
4
5 package nagios
6
7 // rewriteScriptCommand is a no-op on non-Windows platforms.
8 // On Linux/macOS, scripts should be directly executable (chmod +x).
9 func rewriteScriptCommand(pluginPath string, args []string) (string, []string, error) {
10 return pluginPath, args, nil
11 }