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
							
								
									f0254c664f
								
							
						
					
					
						commit
						76d407e92a
					
				
					 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) | 	// 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue