Skip to content
Snippets Groups Projects
Commit 420fe11a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'fetch-subdirectories' into 'master'

Fix fetch.sh for subdirs

See merge request !387
parents 083dde69 8ec5b10b
No related branches found
No related tags found
1 merge request!387Fix fetch.sh for subdirs
...@@ -12,10 +12,18 @@ fi ...@@ -12,10 +12,18 @@ fi
for recipe_path in $recipes for recipe_path in $recipes
do do
if (echo "$recipe_path" | grep '.*/.*' >/dev/null); then
recipe_name=$(basename "$recipe_path")
recipe_path="recipes/$recipe_path"
else
recipe_name="$recipe_path"
recipe_path=`target/release/find_recipe $recipe_name`
fi
if [ -e "$recipe_path/recipe.toml" ] if [ -e "$recipe_path/recipe.toml" ]
then then
target/release/cook --fetch-only "$recipe_path" target/release/cook --fetch-only "$recipe_name"
else else
./cook.sh "$recipe_path" fetch ./cook.sh "$recipe_name" fetch
fi fi
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment