From 2c7d060149b1bfc07bbd0e3b3e0b1977f1775567 2019-08-14 18:56:26 From: Branko Majic Date: 2019-08-14 18:56:26 Subject: [PATCH] MAR-145: Use --quiet option to supress extra output from the pip-compile command instead of redirecting to /dev/null. --- diff --git a/roles/common/files/pip_check_requirements_upgrades.sh b/roles/common/files/pip_check_requirements_upgrades.sh index c2504df1f4026ddd7520eacf5ebecaedd5779c02..d45980b2f6b7960a65617d2c92292f393bb3017a 100755 --- a/roles/common/files/pip_check_requirements_upgrades.sh +++ b/roles/common/files/pip_check_requirements_upgrades.sh @@ -201,7 +201,7 @@ if [[ ${#@} == 0 ]]; then exit "$ERROR_ARGUMENTS" fi -# Verfiy positional arguments. +# Verify positional arguments. config_dir="$1" if [[ ! -d $config_dir ]]; then error "No such directory: $config_dir" @@ -254,7 +254,7 @@ for environment in "$config_dir"/*; do # Deploy the existing requirements file and the new one. sed -e 's/[[:blank:]]*#.*//' "$req_txt" | grep -v "^$" | sort -u > "$tmp_current" - if ! pip-compile --allow-unsafe --no-header --no-annotate --no-index --output-file "$tmp_new" --upgrade "$req_in" > /dev/null; then + if ! pip-compile --quiet --allow-unsafe --no-header --no-annotate --no-index --output-file "$tmp_new" --upgrade "$req_in"; then error "Failed while running pip-compile command against (see error stack trace above): $req_in" continue fi