@@ -110,13 +110,12 @@ func (b *binary) Start(ctx context.Context) (_ *shim, err error) {
|
||||
|
||||
func (b *binary) Delete(ctx context.Context) (*runtime.Exit, error) {
|
||||
log.G(ctx).Info("cleaning up dead shim")
|
||||
|
||||
// Windows cannot delete the current working directory while an
|
||||
// executable is in use with it. For the cleanup case we invoke with the
|
||||
// default work dir and forward the bundle path on the cmdline.
|
||||
var bundlePath string
|
||||
if gruntime.GOOS == "windows" {
|
||||
// Windows cannot delete the current working directory while an
|
||||
// executable is in use with it. For the cleanup case we invoke with the
|
||||
// deafult work dir and forward the bundle path on the cmdline.
|
||||
bundlePath = ""
|
||||
} else {
|
||||
if gruntime.GOOS != "windows" {
|
||||
bundlePath = b.bundle.Path
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user