#! /bin/bash PLAYDIR=./current mkdir -p "$PLAYDIR" ln "$1" "$PLAYDIR/$(basename "$1")" ln "$1" "$PLAYDIR/play" caddy file-server --listen :9000 --browse --root "$PLAYDIR" rm "$PLAYDIR"/*