mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Fixed xc mode detection
Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
parent
b19687c80b
commit
8dbb10f324
1 changed files with 1 additions and 1 deletions
2
xs/xs.go
2
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)")
|
||||
|
|
Loading…
Reference in a new issue