temp remove executable check
This commit is contained in:
parent
2ced31effd
commit
8c22105cf2
1 changed files with 8 additions and 8 deletions
16
linux/run.go
16
linux/run.go
|
@ -51,14 +51,14 @@ func (cmd *LinuxCommand) AddHandler(handler interface{}) error {
|
|||
|
||||
func (cmd *LinuxCommand) Run() error {
|
||||
|
||||
isCommandExecutable, err := cmd.isCommandExecutable(cmd.Options.Command)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !isCommandExecutable {
|
||||
return ErrCommandNotExecutable
|
||||
}
|
||||
//isCommandExecutable, err := cmd.isCommandExecutable(cmd.Options.Command)
|
||||
//if err != nil {
|
||||
// return err
|
||||
//}
|
||||
//
|
||||
//if !isCommandExecutable {
|
||||
// return ErrCommandNotExecutable
|
||||
//}
|
||||
|
||||
var sourceCommand strings.Builder
|
||||
for _, value := range cmd.Options.Sources {
|
||||
|
|
Loading…
Reference in a new issue