Browse Source
fix: Declare the required env variables to empty string
Since `set -o nounset` is now enabled for the whole file, the environment
variables need to be set to empty string if not present to preserve the old behaviour.
Changelog: None
Signed-off-by: Ole Petter <ole.orhagen@northern.tech>
2.1.x
Ole Petter
5 years ago
No known key found for this signature in database
GPG Key ID: A7100375167A7B21
1 changed files with
3 additions and
1 deletions
mender-convert
@ -29,7 +29,9 @@ declare compression_type="" # Detected input file compression, also applied to
declare ocfile="./work/override_compression_config"
declare ocfile="./work/override_compression_config"
declare disk_image="" # Needed in parse_cli_options, and is passed to decompress_image()
declare disk_image="" # Needed in parse_cli_options, and is passed to decompress_image()
declare -a overlays=() # [Dummy] Needed in parse_cli_options, not here
declare -a overlays=() # [Dummy] Needed in parse_cli_options, not here
declare -a configs=() # [Dummy] Needed in parse_cli_options, not here
declare -a configs=() # [Dummy] Needed in parse_cli_options, not here
MENDER_ARTIFACT_NAME="${MENDER_ARTIFACT_NAME:-}" # Required env variable
MENDER_CONVERT_VERSION="${MENDER_CONVERT_VERSION:-}" # Required env variable
###############################################################################
###############################################################################
function show_help() {
function show_help() {