From c878df879b4f492ca83c32c04b1268122dbba69e Mon Sep 17 00:00:00 2001 From: Jan Almeroth Date: Fri, 28 Jun 2024 16:59:19 +0200 Subject: [PATCH] fix(cargo/build): test for non-zero length Signed-off-by: Jan Almeroth --- pkg/build/pipelines/cargo/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/pipelines/cargo/build.yaml b/pkg/build/pipelines/cargo/build.yaml index 51a96f12e..17fbe4731 100644 --- a/pkg/build/pipelines/cargo/build.yaml +++ b/pkg/build/pipelines/cargo/build.yaml @@ -40,7 +40,7 @@ pipeline: # Build and install package(s) cargo auditable build "${{inputs.opts}}" - if [[ -z "${{inputs.output}}" ]]; then + if [[ ! -z "${{inputs.output}}" ]]; then install -Dm755 "${OUTPUT_PATH}/${{inputs.output}}" "${INSTALL_PATH}/${{inputs.output}}" else install -Dm755 "${OUTPUT_PATH}"/* -t "${INSTALL_PATH}"