2023-11-02

This commit is contained in:
2023-11-03 00:52:18 -06:00
parent c9b9604253
commit eaf4037ac9
3 changed files with 125 additions and 38 deletions
-12
View File
@@ -1,12 +0,0 @@
#!/bin/sh
# this could potentially leave a user with two jasima.json files post config
# change but that's fine
if test -z "$JASIMA"
then test -n "$XDG_CONFIG_HOME" \
&& JASIMA="$XDG_CONFIG_HOME"/tokipona/jasima.json \
|| JASIMA="$HOME"/.tokipona/jasima.json
fi
test -n "$JASIMA_URL" \
|| JASIMA_URL=https://linku.la/jasima/data.json
-19
View File
@@ -1,19 +0,0 @@
#!/bin/sh
set -e
test -e toki_common \
&& . ./toki_common \
|| . toki_common
test -n "$2" \
&& printf 'Usage: %s (lipu nimi)\n' >&2 \
&& exit 64 \
|| true # syexits(3) EX_USAGE
test -n "$1" \
&& JASIMA_URL="$1"
mkdir -p "$(dirname "$JASIMA")"
curl "$JASIMA_URL" -o "$JASIMA"