1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00
Files
niveum/packages/scripts/kirciuoklis.sh

12 lines
308 B
Bash
Executable File

#!/bin/sh
curl -sSL 'https://kalbu.vdu.lt/wp-admin/admin-ajax.php' -F action=text_accents -F body="$(cat)" \
| jq -r .message \
| if [ "$1" = "--json" ]
then jq .textParts
else jq -r '
.textParts
| map(if has("accented") then .accented else .string end)
| join("")
'
fi