From 51138332bf97ef6f522b1f7246afc3295a2c71a7 Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Sun, 28 May 2023 15:02:29 -0700 Subject: [PATCH] shellcheck remainder of git lfs hooks --- post-checkout | 2 +- post-commit | 2 +- post-merge | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/post-checkout b/post-checkout index c37815e..0d783d9 100755 --- a/post-checkout +++ b/post-checkout @@ -1,3 +1,3 @@ #!/bin/sh -command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-checkout'.\n"; exit 2; } +command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-checkout'.\n"; exit 2; } git lfs post-checkout "$@" diff --git a/post-commit b/post-commit index e5230c3..abea40a 100755 --- a/post-commit +++ b/post-commit @@ -1,3 +1,3 @@ #!/bin/sh -command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-commit'.\n"; exit 2; } +command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-commit'.\n"; exit 2; } git lfs post-commit "$@" diff --git a/post-merge b/post-merge index c99b752..4a74b51 100755 --- a/post-merge +++ b/post-merge @@ -1,3 +1,3 @@ #!/bin/sh -command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-merge'.\n"; exit 2; } +command -v git-lfs >/dev/null 2>&1 || { printf >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-merge'.\n"; exit 2; } git lfs post-merge "$@"