diff --git a/play.sh b/play.sh index 565965c..24bab26 100755 --- a/play.sh +++ b/play.sh @@ -1,9 +1,11 @@ #! /bin/bash -PLAYDIR=/tmp/beets_play +PLAYDIR="${PLAYDIR:-/tmp/beets_play}" mkdir -p "$PLAYDIR" -cp "$1" "$PLAYDIR/$(basename "$1")" cp "$1" "$PLAYDIR/play" +for f in "$@"; do + cp "$f" "$PLAYDIR/$(basename "$f")" +done caddy file-server --listen :9999 --browse --root "$PLAYDIR" rm "$PLAYDIR"/*