mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
Use grep -q instead of swallowing errors
This commit is contained in:
parent
f4ae3daaf7
commit
123481877e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue