From 740fcd2d992664104b417b658d7c6e2d3427be60 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 12 Nov 2019 09:24:20 +0100 Subject: [PATCH] fail library-bundler script on error --- library-bundler | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/library-bundler b/library-bundler index c1ba97d9..93ef662a 100755 --- a/library-bundler +++ b/library-bundler @@ -1,5 +1,7 @@ #! /usr/bin/env bash +set -e + Common::noOp () { printf '' } @@ -295,7 +297,11 @@ Windows::writeManifest () { system_name="${1}"; shift bundle_dir="${1}"; shift -exe_file="${1}"; shift + +if ! [ -z "${1}" ] +then + exe_file="${1}"; shift +fi bundle_dir="$(Common::getPath "${bundle_dir}")" registry_dir="${bundle_dir}/registry" -- 2.39.2