fix
This commit is contained in:
parent
6cb26b312f
commit
2f3509ae09
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@
|
|||
}
|
||||
|
||||
function to-utf8() {
|
||||
local enc=$(file --brief --mime-encoding "$1")
|
||||
local enc=$(${pkgs.file}/bin/file --brief --mime-encoding "$1")
|
||||
if [[ "$enc" == "utf-8" || "$enc" == "us-ascii" ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue