From ebc6ce12af1c3b1a7fb119549991982c1aad88db Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Tue, 26 Jun 2012 21:22:16 +0200 Subject: [PATCH] remove unportable test syntax [[ ]] is completely unnecessary, [ ] does the trick fine. --- fetch-tweets.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch-tweets.sh b/fetch-tweets.sh index 6a14a0c..411413e 100755 --- a/fetch-tweets.sh +++ b/fetch-tweets.sh @@ -96,7 +96,7 @@ do set -- $(echo $rest) finUrl=$2 domain=$(echo $finUrl | cut -d'/' -f3) - if [[ "$shortDomains" = *$domain* ]] + if [ "$shortDomains" = *$domain* ] then finUrl=$(curl "$finUrl" -s -L -I -o /dev/null -w '%{url_effective}') fi