Skip to content

Commit ef3e9b0

Browse files
authored
fix: recognize sh files as text files (#813)
1 parent 1d543ec commit ef3e9b0

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
@@ -259,6 +259,7 @@ const getSourceFileFormat = (filePath: string, fileContent: Buffer) => {
259259
contentType.includes('xml') ||
260260
contentType.includes('application/node') || // .cjs files
261261
contentType.includes('application/toml') || // for example pyproject.toml files
262+
contentType.includes('application/x-sh') || // .sh files
262263
contentType.includes('application/x-httpd-php') // .php files
263264
? SOURCE_FILE_FORMATS.TEXT
264265
: SOURCE_FILE_FORMATS.BASE64;

0 commit comments

Comments
 (0)