mirror of https://gogs.blitter.com/RLabs/xs
				
				
				
			Fixed xc mode detection
Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
		
							parent
							
								
									b19687c80b
								
							
						
					
					
						commit
						8dbb10f324
					
				
							
								
								
									
										2
									
								
								xs/xs.go
								
								
								
								
							
							
						
						
									
										2
									
								
								xs/xs.go
								
								
								
								
							|  | @ -640,7 +640,7 @@ func main() { | ||||||
| 
 | 
 | ||||||
| 	// Find out what program we are (shell or copier)
 | 	// Find out what program we are (shell or copier)
 | ||||||
| 	myPath := strings.Split(os.Args[0], string(os.PathSeparator)) | 	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
 | 		// xs accepts a command (-x) but not
 | ||||||
| 		// a srcpath (-r) or dstpath (-t)
 | 		// a srcpath (-r) or dstpath (-t)
 | ||||||
| 		flag.StringVar(&cmdStr, "x", "", "run <`command`> (if not specified, run interactive shell)") | 		flag.StringVar(&cmdStr, "x", "", "run <`command`> (if not specified, run interactive shell)") | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue