Created
July 26, 2023 17:15
-
-
Save Aissaoui-Ahmed/e26f341207bd1fc532010eaf025bf928 to your computer and use it in GitHub Desktop.
gitignore script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lang=$1 | |
if [ ! -n "${lang##+([[:space:]])}" ]; then | |
echo 'Please add a programming language' | |
fi | |
langUpperCase=$(echo $lang | sed 's/./\u&/') | |
curl -s "https://raw.githubusercontent.com/github/gitignore/main/${langUpperCase}.gitignore" --output .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment