Fixes #738 by changing the git config autocrlf test to check for what… (#742)

Fixes #738 by changing the git config autocrlf test to check for what we do not want to see "false".

Instead of trying to convert the output of git config autocrlf to binary, which will not always work as "input" is also a valid value in addition to true and false, we check for the value false and exit if it is found.
pull/746/head
Frederick Henderson 4 years ago committed by GitHub
parent 2ce0d8ae1d
commit 5b9c4b4b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,7 +43,7 @@ fish install --path=~/.local/share/omf --config=~/.config/omf
You can verify the integrity of the downloaded installer by verifying the script against [this checksum](bin/install.sha256):
```
bbace7ef16956d87fd40bff91cd1992a90621e7931ac3055f16b7f6d679e8fff install
bb1f4025934600ea6feef2ec11660e17e2b6449c5a23c033860aed712ad328c9 install
```
You can also install Oh My Fish with Git or with an offline source tarball downloaded from the [releases page][releases]:

@ -481,7 +481,7 @@ function sane_environment_check
end
debug "Verifying Git autocrlf is not enabled"
if test (cmd git config --bool core.autocrlf; or echo false) = true
if test (cmd git config core.autocrlf; or echo false) = true
abort "Please disable core.autocrlf in your Git configuration."
end
end

@ -1 +1 @@
bbace7ef16956d87fd40bff91cd1992a90621e7931ac3055f16b7f6d679e8fff install
bb1f4025934600ea6feef2ec11660e17e2b6449c5a23c033860aed712ad328c9 install

Loading…
Cancel
Save