Maxim Likhachev 5 years ago
parent
commit
4c1ded5630
  1. 4
      git-ignore

4
git-ignore

@ -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

Loading…
Cancel
Save