From f30005acfdad35915cfe13241f12c77ac870428b Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Fri, 25 May 2018 11:16:14 +0100 Subject: [PATCH] optimisation of mkdir --- bin/git-ignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-ignore b/bin/git-ignore index c478b0d..7c4d7ec 100755 --- a/bin/git-ignore +++ b/bin/git-ignore @@ -42,7 +42,7 @@ function show_private { function add_private { cd "$(git root)" - mkdir -p .git/info + test -d .git/info || mkdir -p .git/info add_patterns .git/info/exclude "$@" }