From e06c915f1057c75f86e41fe7bacc50031f0dd2b3 Mon Sep 17 00:00:00 2001 From: Shinichi Okada Date: Wed, 9 Jun 2021 07:16:02 +0900 Subject: [PATCH] Adding gitignore with minimum content. --- gitstart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gitstart b/gitstart index ea7c9e8..9a0a4fd 100755 --- a/gitstart +++ b/gitstart @@ -9,7 +9,7 @@ unset user dir repo license_url script_name=$(basename "$0") dir="" -version="0.2.2" +version="0.2.3" usage() { cat <"${dir}"/license.txt + curl -s "https://api.github.com/licenses/${license_url}" | jq -r '.body' >"${dir}"/license.txt echo ">>> license.txt created." fi @@ -187,7 +187,9 @@ if [[ ${prog_lang} ]]; then echo ">>> .gitignore created." else echo ">>> Not able to find ${1^} gitignore at https://github.com/github/gitignore." - echo ">>> Proceeding without .gitignore." + echo ">>> Adding .gitignore with minimum contents." + touch .gitignore + echo "DS_Store" >.gitignore fi fi @@ -221,5 +223,4 @@ echo ">>> Pushing local repo to the remote." git push -u origin main echo ">>> You have created a github repo at https://github.com/${user}/${repo}" - -exit 0 \ No newline at end of file +exit 0