bug potentiel
This commit is contained in:
parent
65bd363a13
commit
2cc24119b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue