Use -y on zypper remove to avoid hanging
When using zypper remove, include the -y option to avoid stack.sh from hanging waiting for user confirmation. Due to output buffering, the script could hang before giving the user the prompt to enter Y to continue, making it unclear why the script was hanging. Change-Id: I5ea761e5ae0829439953c385f8e7d0546acba886 Closes-Bug: 1642736
This commit is contained in:
parent
7976f31fb9
commit
56b3912685
@ -1318,7 +1318,7 @@ function uninstall_package {
|
||||
elif is_fedora; then
|
||||
sudo ${YUM:-yum} remove -y "$@" ||:
|
||||
elif is_suse; then
|
||||
sudo zypper rm "$@" ||:
|
||||
sudo zypper remove -y "$@" ||:
|
||||
else
|
||||
exit_distro_not_supported "uninstalling packages"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user