mirror of
				https://github.com/pnpm/action-setup.git
				synced 2025-11-04 05:19:08 +08:00 
			
		
		
		
	Exit
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							@@ -18,6 +18,7 @@ async function parsePath(pattern: string, inputName: string) {
 | 
			
		||||
  const paths = await builder.glob()
 | 
			
		||||
  if (paths.length !== 1) {
 | 
			
		||||
    error(`Input ${inputName} is expected to match 1 path, but it matches ${paths.length}: ${inspect(paths)}`)
 | 
			
		||||
    throw process.exit(1)
 | 
			
		||||
  }
 | 
			
		||||
  return paths[0]
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user