1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +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" ]