diff --git a/git-ignore b/git-ignore index 402c769..f4bbad1 100755 --- a/git-ignore +++ b/git-ignore @@ -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