Add quotes around the commands being executed during odo push
@@ -447,9 +447,9 @@ func (a Adapter) execDevfile(pushDevfileCommands []versionsCommon.DevfileCommand
}
if show {
- s = log.SpinnerNoSpin("Executing " + command.Name + " command " + *action.Command)
+ s = log.SpinnerNoSpin("Executing " + command.Name + " command " + fmt.Sprintf("%q", *action.Command))
} else {
- s = log.Spinner("Executing " + command.Name + " command " + *action.Command)
+ s = log.Spinner("Executing " + command.Name + " command " + fmt.Sprintf("%q", *action.Command))
}
defer s.End(false)
@@ -494,7 +494,7 @@ func (a Adapter) execDevfile(pushDevfileCommands []versionsCommon.DevfileCommand
},
}
- s = log.Spinner("Executing " + command.Name + " command " + *action.Command)
+ s = log.Spinner("Executing " + command.Name + " command " + fmt.Sprintf("%q", *action.Command))
defer s.End(false)
for _, devRunExec := range devRunExecs {
