7 lines
237 B
Bash
Executable file
7 lines
237 B
Bash
Executable file
#!/bin/sh
|
|
test -n "$1" || { echo "usage: a-gltf-model <gltf-file>"; exit; }
|
|
|
|
file="$(readlink -f "$1")"
|
|
file="${file#/}" # strip leading slash if present
|
|
|
|
echo "<a-gltf-model src='file://xrsh/$file'></a-gltf-model>" >> /root/index.html
|