saintnet_stickers/create_packs.sh
2025-01-20 20:59:04 -05:00

16 lines
291 B
Bash
Executable File

#!/bin/bash
echo "$PLUGIN_CONFIGJSON" >> config.json
if [ ! -s config.json ]; then
echo "no config found"
exit 1
fi
if [[ -z $(grep '[^[:space:]]' "config.json") ]] ; then
echo "no config in file"
exit 1
fi
for d in packs/*/ ; do
sticker-pack "$d" --add-to-index web/packs/
done