From 20a8f10102e356e016e4d5f7c00374c371dc9abf Mon Sep 17 00:00:00 2001 From: jayme Date: Fri, 28 Jul 2017 16:36:57 -0400 Subject: [PATCH] added `-L` to curl options to avoid empty responses - changed URL to non-www as well --- plugins/available/base.plugin.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/available/base.plugin.bash b/plugins/available/base.plugin.bash index cc2faac2..297bf0ff 100755 --- a/plugins/available/base.plugin.bash +++ b/plugins/available/base.plugin.bash @@ -22,7 +22,7 @@ function down4me () param '1: website url' example '$ down4me http://www.google.com' group 'base' - curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g' + curl -Ls "http://downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g' } function myip ()