mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-28 07:44:18 +08:00
Fix fetch.sh for subdirs
This commit is contained in:
parent
eeff190c0e
commit
8ec5b10b24
12
fetch.sh
12
fetch.sh
@ -12,10 +12,18 @@ fi
|
||||
|
||||
for recipe_path in $recipes
|
||||
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" ]
|
||||
then
|
||||
target/release/cook --fetch-only "$recipe_path"
|
||||
target/release/cook --fetch-only "$recipe_name"
|
||||
else
|
||||
./cook.sh "$recipe_path" fetch
|
||||
./cook.sh "$recipe_name" fetch
|
||||
fi
|
||||
done
|
||||
|
||||
Loading…
Reference in New Issue
Block a user