Files
go-worm/lib/install/relaunch_windows.go
T

19 lines
304 B
Go
Raw Normal View History

//go:build windows
package install
import (
"fmt"
"os"
"tea.chunkbyte.com/kato/go-worm/lib/instance"
)
func relaunchInstalled(target string) error {
if err := instance.Launch(target, os.Args[1:]); err != nil {
return fmt.Errorf("relaunch from %s: %w", target, err)
}
os.Exit(0)
return nil
}