From: Thomas Debesse Date: Tue, 12 Nov 2019 08:24:20 +0000 (+0100) Subject: fail library-bundler script on error X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=740fcd2d992664104b417b658d7c6e2d3427be60;p=xonotic%2Fnetradiant.git fail library-bundler script on error --- 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"