whoops, quotes work properly again

This commit is contained in:
Zergling_man 2022-11-09 02:44:08 +11:00
parent d85b1f4f11
commit fc0e110a2c

View File

@ -42,7 +42,7 @@ post(){ curl -s "$baseurl$1" --json "$(echo ${*:2} | jq .+{\"auth\":\"$TOKE\"})"
put(){ curl -sX PUT "$baseurl$1" --json "$(echo ${*:2} | jq .+{\"auth\":\"$TOKE\"})"; }
#Utils
getbody(){ a=$(cat); b=${a//\"/\\\"}; while read n; do c="$c\n$n"; done <<< "$b"; body="${c:2}"; }
getbody(){ a=$(cat); while read n; do b="$b\n$n"; done <<< "$a"; c=${b//\"/\\\"}; body="${c:2}"; }
actions="notifs notifs2 comments freepost shitpost follow unfollow home deref whoami login"
#Endpoints.