From 788e3a9c7f721021f2a1c3edce6f1851b6bc161b Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Mon, 22 Aug 2016 01:23:27 +0300 Subject: [PATCH] Remove a rather useless eval in the chat/answer example --- examples/chat/answer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chat/answer b/examples/chat/answer index 4c1aba8..36cc1b7 100755 --- a/examples/chat/answer +++ b/examples/chat/answer @@ -36,7 +36,7 @@ if [[ "$string" == *http*://* ]]; then sed -e '/https*:\/\//!d' ./frs.txt | sed -n "$(random "$amount")p" img="$(printf "%s\n" "$string" | sed -ne 's|.*\(https*://[^ \"()<>]*\).*|\1|g;1p')" ns="$(printf "%s\n" "$string" | sed -e "s|$img||g")" - cl="$(wget --spider -S $(eval printf '%s\n' '$img') 2>&1)" + cl="$(wget --spider -S "$img" 2>&1)" if [[ $(printf "%s\n" "$cl" | sed -e '/Content-Type/!d;/image\//!d') ]]; then #echo 'posting' printf "%s\n" "$img $from" >> ../data/pictures