wait for editor log to exist
This commit is contained in:
		
							parent
							
								
									e681a3f306
								
							
						
					
					
						commit
						c8b029fe7e
					
				| @ -21,6 +21,12 @@ open -g $editorpath --args \ | ||||
|     -logFile $editorlogpath \ | ||||
|     -projectPath "$(pwd)/game" | ||||
| 
 | ||||
| # wait for editor log to exist | ||||
| while [ ! -f $editorlog ] | ||||
| do | ||||
|     sleep 1 | ||||
| done | ||||
| 
 | ||||
| # use a safe directory that is automatically removed by the shell when the script exists | ||||
| work="$(mktemp -d)" || exit $? | ||||
| trap "rm -rf '$work'" exit | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user