From 56ba3d3801e286d27281416281dc41e46fb91db6 Mon Sep 17 00:00:00 2001 From: Jordi Romera Date: Sun, 16 Dec 2018 16:44:45 +0100 Subject: [PATCH] Use current directory as default if undefined --- split2flac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/split2flac b/split2flac index 2cbb71a..bc0d905 100755 --- a/split2flac +++ b/split2flac @@ -743,6 +743,11 @@ split_collection () { return 0 } +# Defined current dir as input if undefined +if [ -z "${INPATH}" ]; then + INPATH="." +fi + if [ -d "${INPATH}" ]; then if [ ! -x "${INPATH}" ]; then emsg "Directory \"${INPATH}\" is not accessible\n"