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