]> gitweb.fluxo.info Git - metadot.git/commitdiff
Fixes option evaluation at metadot_process_bundle
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Mar 2017 13:31:23 +0000 (10:31 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 16 Mar 2017 13:31:23 +0000 (10:31 -0300)
metadot

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