mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	fix: correct custom runner mode handling with recent changes
This commit is contained in:
		
							parent
							
								
									1274811739
								
							
						
					
					
						commit
						1ba88fea88
					
				
							
								
								
									
										8
									
								
								exec.go
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								exec.go
									
									
									
									
									
								
							@ -73,7 +73,7 @@ func runInput(input string, priv bool) {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		// can only be a string or function so
 | 
							// can only be a string or function so
 | 
				
			||||||
		term := rt.NewTerminationWith(l.MainThread().CurrentCont(), 2, false)
 | 
							term := rt.NewTerminationWith(l.MainThread().CurrentCont(), 3, false)
 | 
				
			||||||
		err := rt.Call(l.MainThread(), runnerMode, []rt.Value{rt.StringValue(cmdString)}, term)
 | 
							err := rt.Call(l.MainThread(), runnerMode, []rt.Value{rt.StringValue(cmdString)}, term)
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			fmt.Fprintln(os.Stderr, err)
 | 
								fmt.Fprintln(os.Stderr, err)
 | 
				
			||||||
@ -81,9 +81,9 @@ func runInput(input string, priv bool) {
 | 
				
			|||||||
			return
 | 
								return
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		luaexitcode := term.Get(0)
 | 
							luaInput := term.Get(0)
 | 
				
			||||||
		runErr := term.Get(1)
 | 
							luaexitcode := term.Get(1)
 | 
				
			||||||
		luaInput := term.Get(1)
 | 
							runErr := term.Get(2)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		var exitCode uint8
 | 
							var exitCode uint8
 | 
				
			||||||
		if code, ok := luaexitcode.TryInt(); ok {
 | 
							if code, ok := luaexitcode.TryInt(); ok {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user