Suppress GNU parallel notice on every run 41/7541/3
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 15 Nov 2017 05:23:16 +0000 (15:23 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 15 Nov 2017 05:38:41 +0000 (15:38 +1000)
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 <abelur@linuxfoundation.org>
shell/deploy
shell/sign

index e704d35..5bd8b1a 100755 (executable)
@@ -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"
index 1839546..d2f6ba9 100755 (executable)
@@ -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[@]}"