#!/bin/sh echo "$1" | grep datapackage || exit 0 # nothing to do dir=$(dirname $1) cd "$dir" echo "[package_janusxr.sh] packing janusxr.html" glb=$(ls *.glb | head -n1) # todo: check datapackage.json instead of first match jml=' janusxr room ' echo "$jml" > janusxr.html