summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-11-24 21:04:34 +0100
committerJohn Ankarström <john@ankarstrom.se>2020-11-24 21:04:34 +0100
commit28388cdd2381a69378a975ec09c2b6f1af7dae2a (patch)
treefa12866dc3b3e077ce5df1df2aad8df98ac386a0
parentdc4a6f87347440e310b739465ec6e2397c742af0 (diff)
downloadmsc-28388cdd2381a69378a975ec09c2b6f1af7dae2a.tar.gz
flt: Use mktemp instead of $RANDOM
-rwxr-xr-xflt2
1 files changed, 1 insertions, 1 deletions
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