Don't need to use \n anymore, newline actually turns into \n

This commit is contained in:
Zergling_man 2022-10-23 23:54:49 +11:00
parent c895e5672e
commit 867903be00

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