Trim file output
This commit is contained in:
parent
68d0b65ee5
commit
738030674f
3 changed files with 3 additions and 3 deletions
2
lib/actions-util.js
generated
2
lib/actions-util.js
generated
|
|
@ -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
|
|
@ -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}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue