dotfiles/.local/bin/scripts/diffuse

6 lines
155 B
Bash
Executable File

#!/bin/sh -e
case "$1" in ([0-9]*) count=$1; shift;; esac
for i in {1..${count:-9}}
do txt2img --prompt "$*" --output "${1}_$(date +%y%m%d)-${i}.png"
done