Skip to content

Commit a376721

Browse files
committed
Change manifest checking on hooks to accept the list-version of the option
1 parent b95110b commit a376721

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)