Compare commits

...

2 Commits

Author SHA1 Message Date
AJ ONeal 693e61d7d4 address windows bug with incomplete args[0] paths 2019-08-10 15:54:56 -06:00
AJ ONeal 258623ae44 update generated files 2019-08-10 15:54:34 -06:00
2 changed files with 10 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import (
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
"strings"
@ -288,6 +289,13 @@ func installServiceman(c *service.Service) ([]string, error) {
if nil != err {
return nil, err
}
// Note: self may be the short name, in which case
// we should just use whatever is closest in the path
// exec.LookPath will handle this correctly
self, err = exec.LookPath(self)
if nil != err {
return nil, err
}
bin, err := ioutil.ReadFile(self)
if nil != err {
return nil, err

View File

@ -1,5 +1,5 @@
// Code generated by fileb0x at "2019-08-05 10:04:21.752835 -0600 MDT m=+0.004628888" from config file "b0x.toml" DO NOT EDIT.
// modification hash(e0dad2aef9534d24be436f8d9dd5e9cc.acdb557394f98d3c09c0bb4d4b9142f8)
// Code generated by fileb0x at "2019-08-05 10:09:44.205977 -0600 MDT m=+0.003863161" from config file "b0x.toml" DO NOT EDIT.
// modification hash(25df1985b6a67dc5b8f5c9281219965c.acdb557394f98d3c09c0bb4d4b9142f8)
package static