From 0dd059e208f51feaaa6d0eb055b6fab8e2aaed59 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 23 Sep 2020 19:47:15 -0300 Subject: Fix: pass current dir to find explicitly (thanks Kirill Elagin) --- metadot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadot b/metadot index 8e7b3e2..35b85ae 100755 --- a/metadot +++ b/metadot @@ -58,7 +58,7 @@ function metadot_backup { # Find contents of a module function __metadot_find { local module="$1" - ( cd $MODULES/$module && find -name '*.link' -or -name '*.dot.link' ) | grep -v '.git/modules' | sed -e 's|./||' + ( cd $MODULES/$module && find . -name '*.link' -or -name '*.dot.link' ) | grep -v '.git/modules' | sed -e 's|./||' } # Load a module -- cgit v1.2.3