Fix output when a token is suppressed.
authorWard Vandewege <ward@curii.com>
Wed, 6 Oct 2021 23:17:02 +0000 (19:17 -0400)
committerWard Vandewege <ward@curii.com>
Wed, 6 Oct 2021 23:17:02 +0000 (19:17 -0400)
No issue #

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

jenkins/run-cwl-test.sh

index cf279f5fcf7afe0d9452aa7c60439ba2fc8b5f2b..742ddcb46ee664eb4b6a465dea605626e637c8aa 100755 (executable)
@@ -5,6 +5,8 @@
 # SPDX-License-Identifier: AGPL-3.0
 
 set -o pipefail
+# extglob needs to be enabled for the suppression of tokens in the output
+shopt -s extglob
 
 DEBUG=0
 SSH_PORT=22
@@ -168,7 +170,7 @@ function run_command() {
       title "Connection denied or timed out"
     fi
   else
-    title "Running '${command/ARVADOS_API_TOKEN=* /ARVADOS_API_TOKEN=suppressed }' locally"
+    title "Running '${command/ARVADOS_API_TOKEN=*([-a-z0-9\/])/ARVADOS_API_TOKEN=suppressed}' locally"
     TMP_FILE=`mktemp`
     if [[ "$DEBUG" != "0" ]]; then
       bash -c "$command" | tee $TMP_FILE