]> gitweb.fluxo.info Git - metadot.git/commitdiff
Minor fixes
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Mar 2017 13:29:17 +0000 (10:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Mar 2017 13:29:17 +0000 (10:29 -0300)
metadot

diff --git a/metadot b/metadot
index 3ba8dc00d03abf0328b8daea5a98fb92cab7add0..203451f5b48b00c56c5357902dd2402638639795 100755 (executable)
--- a/metadot
+++ b/metadot
@@ -235,9 +235,9 @@ function metadot_process_bundle {
   cat $DOT/bundles/$bundle | while read item; do
     option="`echo $OPT | sed -e 's|-bundle||g'`"
 
-    if grep -q "^bundles/" $item; then
+    if echo $item | grep -q "^bundles/"; then
       dependency="`echo $item | sed -e 's|bundles/||g'`"
-    elif grep -q "^modules/" $item; then
+    elif echo $item | grep -q "^modules/"; then
       dependency="`echo $item | sed -e 's|modules/||g'`"
     else
       echo "Skipping invalid item $item..."