From: Ben Soares Date: Tue, 6 Aug 2024 11:05:37 +0000 (+0100) Subject: JAL-3631 Some small but important changes to run_other_script.ps1 X-Git-Tag: Release_2_11_4_0~15^2^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9375a2a68ed9258e68d6b70c6d3290a6da9da91e;p=jalview.git JAL-3631 Some small but important changes to run_other_script.ps1 --- 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 +}