summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/distro-manifest-generator.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/distro-manifest-generator.sh b/scripts/distro-manifest-generator.sh
index 834cde248..7552b9942 100755
--- a/scripts/distro-manifest-generator.sh
+++ b/scripts/distro-manifest-generator.sh
@@ -155,7 +155,7 @@ function _getgitmanifest() {
local gitrepo gitrev metagitdir sep=""
DIST_LAYERS=""
- for metagitdir in $(ls -d $DIST_METADIR/*/.git); do
+ for metagitdir in $(find $DIST_METADIR -type d -name ".git"); do
gitrepo=$($REALPATH -Ls $metagitdir/.. --relative-to=$DIST_METADIR)
pushd $DIST_METADIR/$gitrepo &>/dev/null && {
gitrev=$( { $GIT describe --long --dirty --always 2>/dev/null || echo "unknown_revision"; } | tr ' \t' '__' )