aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorziggys <ziggys@autistici.org>2018-08-15 15:20:34 -0300
committerziggys <ziggys@autistici.org>2018-08-15 15:20:34 -0300
commitd991336f08211f3970df2812ba3a96fcceca58db (patch)
tree1fbf225cae7a3d91fb8f1adfabfa254870a47624
parente779c18d0619cd0aeb147e3d1fae28fdcbadb9d3 (diff)
downloadgsocial-cli-d991336f08211f3970df2812ba3a96fcceca58db.zip
gsocial-cli-d991336f08211f3970df2812ba3a96fcceca58db.tar
HOTFIX: awk run time error
Details: Obtaining timelines will give error awk: run time error: not enough arguments passed to printf(... ...) FILENAME="... ... FNR=3 NR=3 Fix: awk was treating % symbols as the start of a fourth format specifier. This was changed in TEXT variable to use literal % usign %% instead. Status: Fixed
-rwxr-xr-xgsocial-cli.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsocial-cli.sh b/gsocial-cli.sh
index 7ff5f60..617c9bf 100755
--- a/gsocial-cli.sh
+++ b/gsocial-cli.sh
@@ -303,7 +303,7 @@ tget () {
SNAME="$(sed '/^[ \t] .<screen_name>/ !d; s/ *<[^>]*> *//g' "${TIMELINEF}")"
UNAME="$(sed '/^[ \t] .<name>/ !d; s/ *<[^>]*> *//g' "${TIMELINEF}")"
- TEXT="$(sed '/^[ \t] <text>/ !d; s/ *<[^>]*> *//g' "${TIMELINEF}")"
+ TEXT="$(sed '/^[ \t] <text>/ !d; s/ *<[^>]*> *//g; s/%/%%/g' "${TIMELINEF}")"
SSOURCE="$(sed '/^[ \t].<source>/ !d; s/ *<[^>]*> *//g' "${TIMELINEF}")"
CREATED="$(sed '/^[ \t].<created_at>/ !d; s/ *<[^>]*> *//g' "${TIMELINEF}")"