From dd41e2d290591139fe837d426271326833c6e8ce Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 18 Nov 2020 11:55:48 -0800 Subject: [PATCH] Move play directory to tmp dir --- play.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/play.sh b/play.sh index 57a38ac..565965c 100755 --- a/play.sh +++ b/play.sh @@ -1,9 +1,9 @@ #! /bin/bash -PLAYDIR=./current +PLAYDIR=/tmp/beets_play mkdir -p "$PLAYDIR" -ln "$1" "$PLAYDIR/$(basename "$1")" -ln "$1" "$PLAYDIR/play" +cp "$1" "$PLAYDIR/$(basename "$1")" +cp "$1" "$PLAYDIR/play" caddy file-server --listen :9999 --browse --root "$PLAYDIR" rm "$PLAYDIR"/*