Merge pull request #400 from crazy-max/typo
Small typo and ensure trimmed output
This commit is contained in:
		
						commit
						1bc1040cae
					
				
							
								
								
									
										4
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							@ -152,7 +152,7 @@ function getVersion() {
 | 
				
			|||||||
            if (res.stderr.length > 0 && res.exitCode != 0) {
 | 
					            if (res.stderr.length > 0 && res.exitCode != 0) {
 | 
				
			||||||
                throw new Error(res.stderr.trim());
 | 
					                throw new Error(res.stderr.trim());
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            return parseVersion(res.stdout);
 | 
					            return parseVersion(res.stdout.trim());
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -473,7 +473,7 @@ function run() {
 | 
				
			|||||||
            })
 | 
					            })
 | 
				
			||||||
                .then(res => {
 | 
					                .then(res => {
 | 
				
			||||||
                if (res.stderr.length > 0 && res.exitCode != 0) {
 | 
					                if (res.stderr.length > 0 && res.exitCode != 0) {
 | 
				
			||||||
                    throw new Error(`buildx bake failed with: ${res.stderr.match(/(.*)\s*$/)[0].trim()}`);
 | 
					                    throw new Error(`buildx failed with: ${res.stderr.match(/(.*)\s*$/)[0].trim()}`);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
            const imageID = yield buildx.getImageID();
 | 
					            const imageID = yield buildx.getImageID();
 | 
				
			||||||
 | 
				
			|||||||
@ -103,7 +103,7 @@ export async function getVersion(): Promise<string> {
 | 
				
			|||||||
      if (res.stderr.length > 0 && res.exitCode != 0) {
 | 
					      if (res.stderr.length > 0 && res.exitCode != 0) {
 | 
				
			||||||
        throw new Error(res.stderr.trim());
 | 
					        throw new Error(res.stderr.trim());
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      return parseVersion(res.stdout);
 | 
					      return parseVersion(res.stdout.trim());
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,7 @@ async function run(): Promise<void> {
 | 
				
			|||||||
      })
 | 
					      })
 | 
				
			||||||
      .then(res => {
 | 
					      .then(res => {
 | 
				
			||||||
        if (res.stderr.length > 0 && res.exitCode != 0) {
 | 
					        if (res.stderr.length > 0 && res.exitCode != 0) {
 | 
				
			||||||
          throw new Error(`buildx bake failed with: ${res.stderr.match(/(.*)\s*$/)![0].trim()}`);
 | 
					          throw new Error(`buildx failed with: ${res.stderr.match(/(.*)\s*$/)![0].trim()}`);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user