|
|
|
@ -27,9 +27,9 @@ if [ "${#TYPES[@]}" -gt 0 ]; then
@@ -27,9 +27,9 @@ if [ "${#TYPES[@]}" -gt 0 ]; then
|
|
|
|
|
for t in "${TYPES[@]}"; do |
|
|
|
|
if [ -n "$WRITE" ] && [ -n "$ROOT" ]; then |
|
|
|
|
echo "# $t" |
|
|
|
|
curl -sq "https://gitignore.io/api/${t}" >> "$(git root)/.gitignore" |
|
|
|
|
curl -sq -L "https://gitignore.io/api/${t}" >> "$(git root)/.gitignore" |
|
|
|
|
else |
|
|
|
|
curl -sq "https://gitignore.io/api/${t}" |
|
|
|
|
curl -sq -L "https://gitignore.io/api/${t}" |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|