Trim file output

This commit is contained in:
Michael B. Gale
2023-10-05 10:25:31 +01:00
parent 68d0b65ee5
commit 738030674f
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}`,