From 28388cdd2381a69378a975ec09c2b6f1af7dae2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 24 Nov 2020 21:04:34 +0100 Subject: flt: Use mktemp instead of $RANDOM --- flt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flt') diff --git a/flt b/flt index 88797be..24b4cd0 100755 --- a/flt +++ b/flt @@ -2,7 +2,7 @@ # Filter out existing tracks -tmp=/tmp/flt.$RANDOM +tmp=`mktemp /tmp/flt.XXXXXX` find "$@" -type f -name '*.mp3' | xargs -I {} basename -s.mp3 "{}" | sed 's/\(.*\) - \(.*\)/\2\t\1/' > $tmp -- cgit v1.2.3