This patch fixes the 'seq_name' finction which generates a file name to use for
storing an mbox. Currently it just appends a counter to the end. And it uses
the "-" for this, like something-counter, but sometimes it uses "_", which is a
bug. Let's fix it and use "-" everiwhere.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
local name="$1"; shift
local i=0
- while [ -e "${where}/${name}_${i}" ]; do
+ while [ -e "${where}/${name}-${i}" ]; do
i="$(($i+1))"
done
printf "%s" "$where/$name-$i"