#!/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