#!/bin/sh set -x export PATH="/home/annna/bin:$PATH" datestr="$(LANG=C date +%Y-%m-%dT%H:%M:%S.%N%z)" arturi="$(stable-diffusion-emoji "${datestr} water pipe leak beautify")" [ -z "${arturi}" ] && exit 1 emojipath="/br/gopher/$(printf "%s\n" "${arturi}" | cut -d/ -f5-)" leakfile="leak_${datestr}.png" leakpath="/br/gopher/leaks/${leakfile}" magick convert "${emojipath}" "${leakpath}" 2>/dev/null