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

2
lib/actions-util.js generated
View file

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

File diff suppressed because one or more lines are too long

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}`,