From 9c6eaa223a19cc84e84fac437f6df4d43e8ffb13 Mon Sep 17 00:00:00 2001 From: Sven Driemecker Date: Thu, 19 May 2022 14:27:26 +0200 Subject: [PATCH] conditional-jar-downloads: avoid downloading files, if their remote content hasn't changed since the last download --- standAlone/wss_agent.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/standAlone/wss_agent.sh b/standAlone/wss_agent.sh index 1c15641..f7e7720 100644 --- a/standAlone/wss_agent.sh +++ b/standAlone/wss_agent.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/bin/bash -curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar +curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar -z wss-unified-agent.jar -curl -LJO https://github.com/whitesource/unified-agent-distribution/raw/master/standAlone/wss-unified-agent.config +curl -LJO https://github.com/whitesource/unified-agent-distribution/raw/master/standAlone/wss-unified-agent.config -z wss-unified-agent.config java -jar wss-unified-agent.jar "$@"