make find actually portable

This commit is contained in:
yosh 2023-10-11 20:16:19 -04:00
parent 03cb6b431b
commit e663630d39
1 changed files with 2 additions and 0 deletions

View File

@ -251,6 +251,8 @@ fi
# I do not want to change it to account for this
# you should never put newlines in paths
# it is a very bad idea for many programs
# if no arg provided, cwd
[ "$#" -eq 0 ] && set -- .
FLACFILES="$(find "$@" -type f -name "*.[fF][lL][aA][cC]")"
[ -z "$FLACFILES" ] && fail 'no flac files found!'