Avoid warning about null bytes when checking for Git LFS checkouts

This commit is contained in:
Dan Stillman 2023-05-26 02:08:17 +00:00
parent febcf2568e
commit d14d281e7c

View file

@ -59,7 +59,7 @@ function abspath {
}
function check_lfs_file {
if [ "$(head --bytes 7 "$1")" = "version" ]; then
if [ "$(head --bytes 5 "$1")" = "versi" ]; then
echo "$1 not checked out -- install Git LFS and run 'git lfs pull'" >&2
exit 1
fi