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
|
@ -3,16 +3,18 @@
|
||||||
if [ "$1" = "-v" -o "$1" = "--verbose" ]; then
|
if [ "$1" = "-v" -o "$1" = "--verbose" ]; then
|
||||||
VERBOSE='--verbose'
|
VERBOSE='--verbose'
|
||||||
QUIET=
|
QUIET=
|
||||||
|
PROGRESSBAR='--progress-bar=on'
|
||||||
else
|
else
|
||||||
VERBOSE=
|
VERBOSE=
|
||||||
QUIET='--quiet'
|
QUIET='--quiet'
|
||||||
|
PROGRESSBAR='--progress-bar=off'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PIP="sudo -H -u ${user} PIP_CONFIG_FILE=${envpath}/pip.conf ${envpath}/bin/pip"
|
PIP="sudo -H -u ${user} PIP_CONFIG_FILE=${envpath}/pip.conf ${envpath}/bin/pip"
|
||||||
|
|
||||||
|
|
||||||
# upgrade pip
|
# upgrade pip
|
||||||
$PIP install $QUIET --upgrade pip
|
$PIP install $QUIET $PROGRESSBAR --upgrade pip
|
||||||
|
|
||||||
# upgrade rattail
|
# upgrade rattail
|
||||||
cd ${envpath}/src/rattail
|
cd ${envpath}/src/rattail
|
||||||
|
@ -22,4 +24,4 @@ if [ "$(sudo -H -u ${user} git status --porcelain)" != '' ]; then
|
||||||
fi
|
fi
|
||||||
sudo -H -u ${user} git pull $QUIET
|
sudo -H -u ${user} git pull $QUIET
|
||||||
find . -name '*.pyc' -delete
|
find . -name '*.pyc' -delete
|
||||||
$PIP install $QUIET --upgrade --upgrade-strategy eager --editable .
|
$PIP install $QUIET $PROGRESSBAR --upgrade --upgrade-strategy eager --editable .
|
||||||
|
|
Loading…
Reference in a new issue