blob: 99876ed1c970705bf3ec98d5c856780170a2014f [file] [log] [blame]
package impl
import (
"flag"
)
func Run(environ []string) error {
var work WorkParameters
if err := work.ProcessArguments(flag.CommandLine, environ); err != nil {
return err
}
if work.remove {
return work.Remove()
}
if err := work.Chown(); err != nil {
return err
}
return work.Exec()
}