@@ -16,10 +16,10 @@ func TestFile(t *testing.T) {
1616 want * FileType
1717 }{
1818 {"expr" , & FileType {MIME : "application/x-mach-binary" , Ext : "macho" }},
19- {"snmpd" , & FileType {MIME : "application /x-sh " , Ext : "sh" }},
19+ {"snmpd" , & FileType {MIME : "text /x-shellscript " , Ext : "sh" }},
2020 {"test.pl" , & FileType {MIME : "text/x-perl" , Ext : "pl" }},
2121 {"peclcmd" , & FileType {MIME : "text/x-php" , Ext : "php" }},
22- {"test.sh" , & FileType {MIME : "application /x-sh " , Ext : "sh" }},
22+ {"test.sh" , & FileType {MIME : "text /x-shellscript " , Ext : "sh" }},
2323 {"libpam.so.0" , & FileType {MIME : "application/x-sharedlib" , Ext : "so" }},
2424 {"ls" , & FileType {MIME : "application/x-elf" , Ext : "elf" }},
2525 {"tiny" , & FileType {MIME : "application/x-elf" , Ext : "elf" }},
@@ -44,7 +44,7 @@ func TestPath(t *testing.T) {
4444 want * FileType
4545 }{
4646 {"applescript.scpt" , & FileType {MIME : "application/x-applescript" , Ext : "scpt" }},
47- {"./shell.sh" , & FileType {MIME : "application /x-sh " , Ext : "sh" }},
47+ {"./shell.sh" , & FileType {MIME : "text /x-shellscript " , Ext : "sh" }},
4848 {"ls" , nil },
4949 {"/etc/systemd/system/launcher.service" , & FileType {MIME : "text/x-systemd" , Ext : "service" }},
5050 {"yarn-package.json" , & FileType {MIME : "application/json" , Ext : "json" }},
0 commit comments