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:
@@ -124,6 +124,10 @@ check()
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ "$hash" = dev ]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
CURRENT=$(sha1sum $file | awk '{print $1}')
|
||||
|
||||
[ "$hash" = "$CURRENT" ]
|
||||
|
Reference in New Issue
Block a user