From 8dbb10f324cc3608f5eb80016214e87b6e08cda6 Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Tue, 29 Oct 2019 23:50:27 -0700 Subject: [PATCH] Fixed xc mode detection Signed-off-by: Russ Magee --- xs/xs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/xs.go b/xs/xs.go index 66f923a..f385bbe 100755 --- a/xs/xs.go +++ b/xs/xs.go @@ -640,7 +640,7 @@ func main() { // Find out what program we are (shell or copier) myPath := strings.Split(os.Args[0], string(os.PathSeparator)) - if myPath[len(myPath)-1] != "hkexcp" && myPath[len(myPath)-1] != "hkexcp.exe" { + if myPath[len(myPath)-1] != "xc" && myPath[len(myPath)-1] != "xc.exe" { // xs accepts a command (-x) but not // a srcpath (-r) or dstpath (-t) flag.StringVar(&cmdStr, "x", "", "run <`command`> (if not specified, run interactive shell)")