Skip to content

Commit 9c514be

Browse files
DaveHannsvladfrangu
authored andcommitted
fix: recognize sh files as text files (#813)
1 parent 606524a commit 9c514be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ const getSourceFileFormat = (filePath: string, fileContent: Buffer) => {
283283
contentType.includes('xml') ||
284284
contentType.includes('application/node') || // .cjs files
285285
contentType.includes('application/toml') || // for example pyproject.toml files
286+
contentType.includes('application/x-sh') || // .sh files
286287
contentType.includes('application/x-httpd-php') // .php files
287288
? SOURCE_FILE_FORMATS.TEXT
288289
: SOURCE_FILE_FORMATS.BASE64;

0 commit comments

Comments
 (0)