mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-23 13:31:05 -05:00
remove unportable test syntax
[[ ]] is completely unnecessary, [ ] does the trick fine.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user