diff --git a/lib/ulib/debian b/lib/ulib/debian index 8921acf..c53d020 100644 --- a/lib/ulib/debian +++ b/lib/ulib/debian @@ -14,7 +14,8 @@ function pkg_check() { # Vérifier que les packages sont installés sur le système local pkg status for pkg in "$@"; do - status="$(LANG=C dpkg -s "$pkg" 2>/dev/null | grep '^Status:')" || return 1 + LANG=C setx status=dpkg -s "$pkg" 2>/dev/null || return 1 + setx status=grep '^Status:' <<<"$status" [[ "$status" == *not-installed* ]] && return 1 [[ "$status" == *deinstall* ]] && return 1 done