From 20f03dede5e7e0481c298c37c55fb6cf07d189d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 18 Nov 2013 15:13:18 +0100 Subject: [PATCH] Allow usage of fd-commit inside the main fdroiddata directories --- fd-commit | 4 ++++ 1 file changed, 4 insertions(+) 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##* }