mirror of
https://github.com/ben-grande/qusal.git
synced 2025-09-26 03:00:52 -04:00
fix: native module to check command existence
The older version stopped working unexpectedly, if the command failed, it failed the state.
This commit is contained in:
parent
93ebe4c77f
commit
4737241ec4
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{#
|
||||
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
@ -81,7 +81,7 @@ If sls_path is 'browser', then this would install the repo from:
|
|||
|
||||
{% endif -%}
|
||||
|
||||
{% if salt['cmd.retcode']('command -v apt-cacher-ng-repo >/dev/null') == 0 -%}
|
||||
{% if salt['cmd.has_exec']('apt-cacher-ng-repo') -%}
|
||||
"{{ name }}-run-apt-cacher-ng-repo":
|
||||
cmd.run:
|
||||
- name: apt-cacher-ng-repo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue