diff --git a/salt/pkgrepo/suse/install.sls b/salt/pkgrepo/suse/install.sls
index 09eef4da6e223b84a20a198583bf792d29e5b79d..3ac8feeee296a2f58e5e2d0ef7f26419b3599635 100644
--- a/salt/pkgrepo/suse/install.sls
+++ b/salt/pkgrepo/suse/install.sls
@@ -4,7 +4,7 @@
 
 {#- Resorting to this ugly hack since the state doesn't handle if the `baseurl` is
     already configured under another name, such as used by the `salt-bootstrap` #}
-{%- if not salt["cmd.run"]("zypper lr --uri | grep " ~ salt_settings.pkgrepo) %}
+{%- if not salt["cmd.shell"]("zypper lr --uri | grep " ~ salt_settings.pkgrepo) %}
 salt-pkgrepo-install-saltstack-suse:
   pkgrepo.managed:
     - name: systemsmanagement_saltstack_products