Use grep -q instead of swallowing errors

This commit is contained in:
rallytime 2017-10-05 16:23:25 -04:00
parent f4ae3daaf7
commit 123481877e
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -5425,7 +5425,7 @@ __set_suse_pkg_repo() {
__check_and_refresh_suse_pkg_repo() {
# Check to see if systemsmanagement_saltstack exists
__zypper repos | grep systemsmanagement_saltstack >/dev/null 2>&1
__zypper repos | grep -q systemsmanagement_saltstack
if [ $? -eq 1 ]; then
# zypper does not yet know anything about systemsmanagement_saltstack