Trim file output

This commit is contained in:
Michael B. Gale 2023-10-05 10:25:31 +01:00
parent 68d0b65ee5
commit 738030674f
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 3 additions and 3 deletions

View file

@ -452,7 +452,7 @@ export const getFileType = async (filePath: string): Promise<string> => {
},
},
).exec();
return stdout;
return stdout.trim();
} catch (e) {
core.info(
`Could not determine type of ${filePath} from ${stdout}. ${stderr}`,