Respect yes with opensuse bootstrap

This commit is contained in:
Brad Warren 2016-04-22 15:00:24 -04:00
parent 40aa4dbf91
commit ab2319e609
2 changed files with 12 additions and 2 deletions

View file

@ -307,7 +307,12 @@ BootstrapRpmCommon() {
BootstrapSuseCommon() {
# SLE12 don't have python-virtualenv
$SUDO zypper -nq in -l \
if [ "$ASSUME_YES" = 1 ]; then
zypper_flags="-nq"
install_flags="-l"
fi
$SUDO zypper $zypper_flags in $install_flags \
python \
python-devel \
python-virtualenv \

View file

@ -1,7 +1,12 @@
BootstrapSuseCommon() {
# SLE12 don't have python-virtualenv
$SUDO zypper -nq in -l \
if [ "$ASSUME_YES" = 1 ]; then
zypper_flags="-nq"
install_flags="-l"
fi
$SUDO zypper $zypper_flags in $install_flags \
python \
python-devel \
python-virtualenv \