From eb47c1bb29981897c9f47389cd92282c8e5cb53c Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Sat, 20 Jun 2020 16:29:23 +0300 Subject: [PATCH] git-ignore: follow to redirect --- git-ignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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