mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 11:48:38 +08:00 
			
		
		
		
	Drop all commands from output
This commit is contained in:
		
							parent
							
								
									87846ba5e1
								
							
						
					
					
						commit
						baea1e0c5f
					
				|  | @ -12,11 +12,9 @@ module.exports = { | ||||||
| 
 | 
 | ||||||
| const processStdoutWrite = process.stdout.write.bind(process.stdout) | const processStdoutWrite = process.stdout.write.bind(process.stdout) | ||||||
| process.stdout.write = (str, encoding, cb) => { | process.stdout.write = (str, encoding, cb) => { | ||||||
|  |   // Core library will directly call process.stdout.write for commands
 | ||||||
|   // We don't want :: commands to be executed by the runner during tests
 |   // We don't want :: commands to be executed by the runner during tests
 | ||||||
|   // Replace any :: with :
 |  | ||||||
|   if (!str.match(/^::/)) { |   if (!str.match(/^::/)) { | ||||||
|     return processStdoutWrite(str, encoding, cb); |     return processStdoutWrite(str, encoding, cb); | ||||||
|   } else { |  | ||||||
|     return processStdoutWrite(str.replace(/::/g, ":"), encoding, cb); |  | ||||||
|   } |   } | ||||||
| } | } | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Josh Gross
						Josh Gross