From 4726e5b28c1127677368936bafb5aab1e657709d Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 14 Apr 2016 23:08:03 +0100 Subject: [PATCH] git_create from current dir --- etc/profile.d/git.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 77799644..e7e36f2c 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -64,10 +64,10 @@ git_create() { git init # Create files - printf "\n=============\n## Synopsis\n\nDESCRIPTION\n" > README.md + [ -e README.md ] || printf "\n=============\n## Synopsis\n\nDESCRIPTION\n" > README.md echo ">git add README.md" - git add . + git add README.md echo ">git commit -m \"Created by $FUNCNAME\"" git commit -m "Created by $FUNCNAME" -- 2.47.3