diff --git a/fd-commit b/fd-commit index e833e034..9b5a2dcd 100755 --- a/fd-commit +++ b/fd-commit @@ -4,6 +4,10 @@ commands=() +if [ ! -d metadata ]; then + [ -d ../metadata ] && cd .. || { echo "No metadata files found!"; exit 2; } +fi + while read line; do if [[ "$line" == *M*metadata/*.txt ]]; then file=${line##* }