Add --progress-bar
arg for pip in backup app's upgrade script
for some reason latest pip has progress bar showing up in cron output and causing unwanted email
This commit is contained in:
parent
fd0e55ab60
commit
097a96fc07
1 changed files with 4 additions and 2 deletions
|
@ -3,16 +3,18 @@
|
|||
if [ "$1" = "-v" -o "$1" = "--verbose" ]; then
|
||||
VERBOSE='--verbose'
|
||||
QUIET=
|
||||
PROGRESSBAR='--progress-bar=on'
|
||||
else
|
||||
VERBOSE=
|
||||
QUIET='--quiet'
|
||||
PROGRESSBAR='--progress-bar=off'
|
||||
fi
|
||||
|
||||
PIP="sudo -H -u ${user} PIP_CONFIG_FILE=${envpath}/pip.conf ${envpath}/bin/pip"
|
||||
|
||||
|
||||
# upgrade pip
|
||||
$PIP install $QUIET --upgrade pip
|
||||
$PIP install $QUIET $PROGRESSBAR --upgrade pip
|
||||
|
||||
# upgrade rattail
|
||||
cd ${envpath}/src/rattail
|
||||
|
@ -22,4 +24,4 @@ if [ "$(sudo -H -u ${user} git status --porcelain)" != '' ]; then
|
|||
fi
|
||||
sudo -H -u ${user} git pull $QUIET
|
||||
find . -name '*.pyc' -delete
|
||||
$PIP install $QUIET --upgrade --upgrade-strategy eager --editable .
|
||||
$PIP install $QUIET $PROGRESSBAR --upgrade --upgrade-strategy eager --editable .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue