my-beets/play.sh

10 lines
190 B
Bash
Executable File

#! /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"/*