From 9375a2a68ed9258e68d6b70c6d3290a6da9da91e Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Tue, 6 Aug 2024 12:05:37 +0100 Subject: [PATCH] JAL-3631 Some small but important changes to run_other_script.ps1 --- utils/getdown/bin/run_other_script.ps1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/utils/getdown/bin/run_other_script.ps1 b/utils/getdown/bin/run_other_script.ps1 index 80f2a87..1c00beb 100755 --- a/utils/getdown/bin/run_other_script.ps1 +++ b/utils/getdown/bin/run_other_script.ps1 @@ -39,5 +39,11 @@ $SCRIPTPATH = Readlink-f -Link $CMDPATH $SCRIPTBIN = Split-Path -Path $SCRIPTPATH -Parent $SCRIPT = Join-Path $SCRIPTBIN -ChildPath $OTHERSCRIPT -Write-Host "Running: $SCRIPT $args" -& $SCRIPT $args +if ( $args.Count -eq 0 ) { + & $SCRIPT +} else { + if ($args.Contains("--debug")) { + Write-Host "Running: $SCRIPT $args" + } + & $SCRIPT @args +} -- 1.7.10.2