Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

00_unpack_zip.sh - Unpack the deposit ZIP

Description

Unpacks <project>.zip into <project>/ and then deletes the ZIP to free disk space (Bitbucket stops steps that run out of disk). Existing files are not overwritten (unzip -n). If unpacking fails, the ZIP is kept.

After that, if <project>/ contains between one and five ZIP files at its top level, they are unpacked into <project>/ as well, and their names are written to <project>/.zipfile_info as ZIPFILE_SUFFIX for later scripts. ZIP files inside <project>/ are part of the deposit and are never deleted.

Usage

./automations/00_unpack_zip.sh [--keep-zip] [project]