~arivigo/phrenamer

8a3da24dd2f592ef6e952cee8e797257cf42e1ea — Ariadna Vigo 7 months ago 28b9776
Supressing ls printing to stderr
1 files changed, 1 insertions(+), 1 deletions(-)

M phrenamer
M phrenamer => phrenamer +1 -1
@@ 20,7 20,7 @@ done
shift $((OPTIND - 1))
dir="${1:-$(pwd)}"

files=$(ls "${dir}/"*.jpg "${dir}"/*.jpeg "${dir}/"*.JPG)
files=$(ls "${dir}/"*.jpg "${dir}"/*.jpeg "${dir}/"*.JPG 2> /dev/null)
! [ "$files" ] && die 'Error: no files to rename.'

filenum=$(echo "$files" | wc -l)