diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-01-27 14:43:51 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-01-27 14:43:51 -0300 |
commit | d7515f6130879773875d7b3fd0612db86139d0df (patch) | |
tree | 40d558aac02e0cefc14c60e81ccc4c6414dc524b | |
parent | e704891a1caf50e744bdbf61e09f205130bfc87f (diff) | |
download | scripts-d7515f6130879773875d7b3fd0612db86139d0df.tar.gz scripts-d7515f6130879773875d7b3fd0612db86139d0df.tar.bz2 |
Fix: scuttle: torify
-rwxr-xr-x | scuttle | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -8,7 +8,7 @@ function urlencode() { # urlencode <string> old_lc_collate=$LC_COLLATE LC_COLLATE=C - + local length="${#1}" for (( i = 0; i < length; i++ )); do local c="${1:i:1}" @@ -17,7 +17,7 @@ function urlencode() { *) printf '%%%02X' "'$c" ;; esac done - + LC_COLLATE=$old_lc_collate } @@ -49,7 +49,7 @@ CALL="$CALL&tags=$TAGS" # Description if [ -z "$DESC" ]; then - DESC="`curl -s $URL | grep -i "<title>" | sed -e 's|<title>\(.*\)</title>|\1|' 2> /dev/null`" + DESC="`torify curl -s $URL | grep -i "<title>" | sed -e 's|<title>\(.*\)</title>|\1|' 2> /dev/null`" echo "Fetched description: $DESC" fi |