Sync scripts with rancher/charts
parent
693c08aece
commit
f127f71327
|
@ -1,2 +1,2 @@
|
|||
# ${name}-crd
|
||||
A Rancher chart that installs the CRDs used by [${name}](https://github.com/rancher/dev-charts/tree/master/packages/${name}).
|
||||
A Rancher chart that installs the CRDs used by ${name}.
|
||||
|
|
|
@ -13,9 +13,10 @@ fi
|
|||
for f in packages/*; do
|
||||
rm -rf ./sha256sum-new/$(basename -- ${f})
|
||||
mkdir -p ./sha256sum-new/$(basename -- ${f})
|
||||
find ${f} -type f | xargs sha256sum > ./sha256sum-new/$(basename -- ${f})/$(basename -- ${f}).sum
|
||||
find ${f} -type f | sort | xargs sha256sum > ./sha256sum-new/$(basename -- ${f})/$(basename -- ${f}).sum
|
||||
done
|
||||
|
||||
# If there were no sha256sums in the first place, output the name of every chart
|
||||
if [ ! -d sha256sum ]; then
|
||||
cp -R sha256sum-new sha256sum
|
||||
for f in packages/*; do
|
||||
|
@ -23,8 +24,9 @@ if [ ! -d sha256sum ]; then
|
|||
done
|
||||
fi
|
||||
|
||||
for f in sha256sum/*; do
|
||||
if ! cmp -s ./sha256sum-new/$(basename -- ${f})/$(basename -- ${f}).sum ${f}/$(basename -- ${f}).sum; then
|
||||
# For all the new sha256sums that were generated, compare them and see if the existing assets need to be rebuilt
|
||||
for f in sha256sum-new/*; do
|
||||
if ! cmp -s ./sha256sum/$(basename -- ${f})/$(basename -- ${f}).sum ${f}/$(basename -- ${f}).sum; then
|
||||
echo $(basename -- ${f})
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue