mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	fix version output from file (#625)
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							@@ -73786,7 +73786,7 @@ function getToolVersion(tool, options) {
 | 
				
			|||||||
                core.warning(`[warning]${stderr}`);
 | 
					                core.warning(`[warning]${stderr}`);
 | 
				
			||||||
                return '';
 | 
					                return '';
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            return stdout;
 | 
					            return stdout.trim();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        catch (err) {
 | 
					        catch (err) {
 | 
				
			||||||
            return '';
 | 
					            return '';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -133,7 +133,7 @@ async function getToolVersion(tool: string, options: string[]) {
 | 
				
			|||||||
      return '';
 | 
					      return '';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return stdout;
 | 
					    return stdout.trim();
 | 
				
			||||||
  } catch (err) {
 | 
					  } catch (err) {
 | 
				
			||||||
    return '';
 | 
					    return '';
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user