Skip to content

Commit 1d1c284

Browse files
authored
Merge pull request rapid7#21364 from sjanusz-r7/update-payload-cached-sizes-on-new-metadata-cache
Update payload cached sizes when creating new module metadata cache
2 parents 17f7f4d + f00bbe6 commit 1d1c284

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/automation/cache/build_new_cache.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
#!/bin/sh -ex
1+
#!/bin/bash -exu
2+
set -o pipefail
23
bundle install
4+
bundle exec ruby tools/modules/update_payload_cached_sizes.rb
35
rm -f db/modules_metadata_base.json
46
git ls-files modules/ -z | xargs -0 -n1 -P `nproc` -I{} -- git log -1 --format="%ai {}" {} | while read -r udate utime utz ufile ; do
57
touch -d "$udate $utime" $ufile

0 commit comments

Comments
 (0)