remove unportable test syntax

[[ ]] is completely unnecessary, [ ] does the trick fine.
This commit is contained in:
Matthias Rampke
2012-06-26 21:22:16 +02:00
parent 94e310791d
commit ebc6ce12af

View File

@@ -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