From: Anil Belur Date: Wed, 15 Nov 2017 05:23:16 +0000 (+1000) Subject: Suppress GNU parallel notice on every run X-Git-Tag: v0.11.0~3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=8bca89439d2567e343e733846fac8a933d4a4e8e;p=releng%2Flftools.git Suppress GNU parallel notice on every run By default the notice is output on every run, therefore use the `--no-notice` option to supress the output. Change-Id: Id1dbe7b8daee390c886486eeb3c4c3c436fc26e4 Signed-off-by: Anil Belur --- diff --git a/shell/deploy b/shell/deploy index e704d35b..5bd8b1ae 100755 --- a/shell/deploy +++ b/shell/deploy @@ -570,10 +570,10 @@ deploy_nexus() { ! -name resolver-status.properties \ | cut -c 3-)) fi - if hash parallel 2>/dev/null; then export -f upload_to_nexus - parallel --jobs 200% --halt now,fail=1 "upload_to_nexus $nexus_repo_url {}" ::: ${file_list[*]} + parallel --no-notice --jobs 200% --halt now,fail=1 \ + "upload_to_nexus $nexus_repo_url {}" ::: ${file_list[*]} else for file in "${file_list[@]}"; do upload_to_nexus "$nexus_repo_url" "$file" diff --git a/shell/sign b/shell/sign index 1839546c..d2f6ba9c 100755 --- a/shell/sign +++ b/shell/sign @@ -73,7 +73,8 @@ sign_dir() { if hash parallel 2>/dev/null; then echo "Signing in parallel..." - parallel --jobs 200% --halt now,fail=1 "$GPG_BIN --batch -abq {}" ::: ${files_to_sign[*]} + parallel --no-notice --jobs 200% --halt now,fail=1 \ + "$GPG_BIN --batch -abq {}" ::: ${files_to_sign[*]} echo "Signed the following files:" printf '%s\n' "${files_to_sign[@]}"