xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/bin/a-gltf-model

7 lines
207 B
Bash
Executable File

#!/bin/sh
test -n "$1" || { echo "usage: a-gltf-model <gltf-file>"; exit; }
file="${1#/}" # strip leading slash if present
echo "<a-gltf-model src='file://xrsh/$file'></a-gltf-model>" >> /root/index.html