aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorziggys <ziggys@autistici.org>2019-11-11 17:06:06 -0300
committerziggys <ziggys@autistici.org>2019-11-11 17:06:06 -0300
commit72405d7ea7a102ee44397fa8c49e9f6e95c41a7e (patch)
treec4764f79e7561ed4178bd70d5859da395ce89faf
parenta67071bcf56e12e88038eb6a95f2b86a7c40a9d8 (diff)
downloadgsocial-cli-72405d7ea7a102ee44397fa8c49e9f6e95c41a7e.tar
gsocial-cli-72405d7ea7a102ee44397fa8c49e9f6e95c41a7e.zip
HOTFIX: carriage wil make weird stuff, so remove itv0.7.2
-rw-r--r--README.txt2
-rwxr-xr-xgsocial-cli.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/README.txt b/README.txt
index 6412f41..0dc45e0 100644
--- a/README.txt
+++ b/README.txt
@@ -60,7 +60,7 @@ Where Options are:
-T <N> Retrieve last 'N' statuses from 'public timeline'
-m <N> Retrieve last 'N' 'mentions' and 'interactions'
-s SENT Retrieve your own 20 most recent statuses
- -e <TAG> Retrieve a tag's timeline
+ -e <TAG> Retrieve a tag timeline
-U <USERRNAME> <N> Retrieve last 'N' statuses from 'USERNAME''timeline'
i.e.: gsocial-cli -U "user@example.net" 3
-r <ID> Repeat status with 'id' code number
diff --git a/gsocial-cli.sh b/gsocial-cli.sh
index 604609c..b632f33 100755
--- a/gsocial-cli.sh
+++ b/gsocial-cli.sh
@@ -9,7 +9,7 @@
# scriptinfo
SCRIPTNAME="${0##*/}"
SCRIPTNAME="${SCRIPTNAME%%.sh}"
-VERSION="0.7.1" # HOTFIX: typo
+VERSION="0.7.2" # HOTFIX: carriage wil make weird stuff, so remove it
AUTHOR="ziggys"
LICENSE="The Drunken BEER License v 1.1 (https://git.p4g.club/git/beer/about)"
@@ -36,7 +36,7 @@ Options
-T <N> Retrieve last 'N' statuses from 'public timeline'
-m <N> Retrieve last 'N' 'mentions' and 'interactions'
-s SENT Retrieve your own 20 most recent statuses
- -e <TAG> Retrieve a tag's timeline
+ -e <TAG> Retrieve a tags timeline
-U <USERNAME> <N> Retrieve last 'N' statuses from 'USERNAME''timeline'
i.e.: ${SCRIPTNAME} -U "user@example.net" 3
-r <ID> Repeat status with 'id' code number
@@ -298,7 +298,7 @@ tget () {
&& printf "exiting now..." \
&& exit 0
- jq -r '.[] | .user.name + ":;:" + .user.screen_name + ":;:" + (.id|tostring) + ":;:" + (.text|split("\n\n")|join(" ")) + ":;:" + (.created_at|tostring) + ":;:" + .source' "${TIMELINEF}" > "${OUTPUT4}"
+ jq -r '.[] | .user.name + ":;:" + .user.screen_name + ":;:" + (.id|tostring) + ":;:" + (.text|split("\n\n")|join(" ")|split("\n")|join(" ")) + ":;:" + (.created_at|tostring) + ":;:" + .source' "${TIMELINEF}" > "${OUTPUT4}"
awk -v user="${USER}" '
BEGIN{FS=":;:"; OFS="\n"}