1
0
mirror of https://github.com/rancher/os.git synced 2025-08-01 23:17:50 +00:00

Add support for local builds for downloads

If you set the hash in scripts/download to "dev" the build.sh
will use the local file from assets/
This commit is contained in:
Darren Shepherd 2015-03-06 21:25:25 -07:00
parent f7b5b4f83b
commit fff517ef0b
2 changed files with 5 additions and 1 deletions

View File

@ -124,6 +124,10 @@ check()
return 1
fi
if [ "$hash" = dev ]; then
return 0
fi
CURRENT=$(sha1sum $file | awk '{print $1}')
[ "$hash" = "$CURRENT" ]

View File

@ -35,7 +35,7 @@ generate_images()
run ./scripts/bootstrap
run ./scripts/test
run --assets ./scripts/build-common ./scripts/download
run --assets ./scripts/build-common --assets ./assets ./scripts/download
run --assets ./scripts/dockerimages --assets ./scripts/build-images
finish