aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-16 10:31:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-16 10:31:23 -0300
commitd74ed37d10eeddf454f5fdae0bfb3206ffcfd400 (patch)
tree7e914b9a1e67b2b0ff7eb380b1fdce2b6ef33ce1
parentd8e7add329b0733553887f6592a274455098175d (diff)
downloadmetadot-d74ed37d10eeddf454f5fdae0bfb3206ffcfd400.tar.gz
metadot-d74ed37d10eeddf454f5fdae0bfb3206ffcfd400.tar.bz2
Fixes option evaluation at metadot_process_bundle
-rwxr-xr-xmetadot4
1 files changed, 2 insertions, 2 deletions
diff --git a/metadot b/metadot
index 203451f..27efd66 100755
--- 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..."