From 670256e8a59baf6b9dea111171d1935047581016 Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Fri, 24 Jan 2020 10:28:10 +0000 Subject: [PATCH] updated update_gitignore.io.sh --- update_gitignore.io.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update_gitignore.io.sh b/update_gitignore.io.sh index 0098be4f..9ce6e8c9 100755 --- a/update_gitignore.io.sh +++ b/update_gitignore.io.sh @@ -37,4 +37,6 @@ url="$(head -n1 <<< "${url/*https:/https:}")" sed_regex="${header//\//\\/}" sed -i.bak "/$sed_regex/,\$d" .gitignore -curl "$url" | sed 's/[[:space:]]*$//' | sed -n "/$sed_regex/,\$p" >> .gitignore +curl -sS "$url" | +sed 's/[[:space:]]*$//' | +sed -n "/$sed_regex/,\$p" >> .gitignore