nix: removes unnecessary use of cat in ivory-header build

This commit is contained in:
Joe Bryan 2019-12-04 22:57:07 -08:00
parent a01b5ed3db
commit 13f61ad373

View File

@ -13,7 +13,7 @@ fi
# first 7 bytes != "version" (start of an lfs pointer)
#
if [ "$(cat "$IVORY" | head -c 7)" = "version" ]; then
if [ "$(head -c 7 "$IVORY")" = "version" ]; then
echo "$IVORY is an LFS pointer (it starts with 'version')"
echo "to fix, run: git lfs install"
exit 1