diff options
author | John Ankarström <john@ankarstrom.se> | 2020-11-24 21:04:34 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2020-11-24 21:04:34 +0100 |
commit | 28388cdd2381a69378a975ec09c2b6f1af7dae2a (patch) | |
tree | fa12866dc3b3e077ce5df1df2aad8df98ac386a0 | |
parent | dc4a6f87347440e310b739465ec6e2397c742af0 (diff) | |
download | msc-28388cdd2381a69378a975ec09c2b6f1af7dae2a.tar.gz |
flt: Use mktemp instead of $RANDOM
-rwxr-xr-x | flt | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |