#!/bin/sh test -n "$1" || { echo "usage: a-gltf-model "; exit; } file="$1" echo "$file" | grep -q http || { file="$(readlink -f "$1")" file="${file#/}" # strip leading slash if present file="file://xrsh/$file" } echo "" >> /root/index.html