mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-22 21:11:06 -05:00
Quote tweet
This commit is contained in:
@@ -85,7 +85,7 @@ xmlstarlet sel -t -m "statuses/status" -n -o "text " -v "id" -o "|" -v "created_
|
|||||||
while read -r first rest
|
while read -r first rest
|
||||||
do
|
do
|
||||||
case $first in
|
case $first in
|
||||||
"text") echo $text; text=$rest ;;
|
"text") echo "$text"; text="$rest" ;;
|
||||||
"url")
|
"url")
|
||||||
set -- $(echo $rest)
|
set -- $(echo $rest)
|
||||||
finUrl=$2
|
finUrl=$2
|
||||||
@@ -98,7 +98,7 @@ do
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
echo $text
|
echo "$text"
|
||||||
} > $temp2
|
} > $temp2
|
||||||
|
|
||||||
perl -MHTML::Entities -pe 'decode_entities($_)' < $temp2 > $temp
|
perl -MHTML::Entities -pe 'decode_entities($_)' < $temp2 > $temp
|
||||||
|
|||||||
Reference in New Issue
Block a user