Add option to skip generic pack checksum (#1816)

This commit is contained in:
Chip Wolf ‮ authored and GitHub committed 2022-11-10 07:05:47 -06:00
1 parent 0d9bfa6478
commit 46a09ed331
2 files changed
+11 -5

No files matched your search

+8 -4
View File
@@ -254,10 +254,14 @@ function genericPacks() {
cp -R -f "${base_dir}"/* /data
rm -rf $original_base_dir
log "Saving generic pack(s) checksum"
sha1sum "${packFiles[@]}" > "${sum_file}"
if isDebugging; then
cat "$sum_file"
if isTrue "${SKIP_GENERIC_PACK_CHECKSUM:-false}"; then
log "Skipping generic pack(s) checksum"
else
log "Saving generic pack(s) checksum"
sha1sum "${packFiles[@]}" > "${sum_file}"
if isDebugging; then
cat "$sum_file"
fi
fi
fi
fi