Skip to content

Commit 464d7d4

Browse files
authored
Merge pull request #106 from buildkite-plugins/toote_multiple_manifests_bug
Correct bug with multiple manifest files
2 parents b95110b + a376721 commit 464d7d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hooks/post-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ for LEVEL in "${SAVE_LEVELS[@]}"; do
5151
# this validates the level as well
5252
KEY=$(build_key "${LEVEL}" "${CACHE_PATH}" "${COMPRESS}")
5353

54-
if [ "${LEVEL}" = 'file' ] && [ -z "$(plugin_read_config MANIFEST)" ]; then
54+
if [ "${LEVEL}" = 'file' ] && [ -z "$(plugin_read_list MANIFEST)" ]; then
5555
echo "+++ 🚨 Missing manifest option in the cache plugin for file-level saving"
5656
exit 1
5757
fi

hooks/pre-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ MAX_LEVEL=$(plugin_read_config RESTORE 'no')
1919
if [ "${MAX_LEVEL}" = 'no' ]; then
2020
echo 'Cache not setup for restoring'
2121
exit 0
22-
elif [ "${MAX_LEVEL}" = 'file' ] && [ -z "$(plugin_read_config MANIFEST)" ]; then
22+
elif [ "${MAX_LEVEL}" = 'file' ] && [ -z "$(plugin_read_list MANIFEST)" ]; then
2323
echo "+++ 🚨 Missing manifest option in the cache plugin for file-level restore"
2424
exit 1
2525
fi

0 commit comments

Comments
 (0)