bug potentiel

This commit is contained in:
Jephté Clain 2017-07-26 11:44:17 +04:00
parent 65bd363a13
commit 2cc24119b5
1 changed files with 2 additions and 1 deletions

View File

@ -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