From 3353096ebedfbd9909d376ce7875aca28549619d Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Fri, 22 Mar 2019 14:09:09 +0100 Subject: [PATCH] don't use a sub shell for IS_REPVOLATILE --- evocheck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index 2f77cc2..2916db9 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -587,10 +587,12 @@ if is_debian; then # Verification de la présence du depot volatile if [ "$IS_REPVOLATILE" = 1 ]; then if is_debian_lenny; then - (grep -qE "^deb http://volatile.debian.org/debian-volatile" /etc/apt/sources.list || failed "IS_REPVOLATILE") + grep -qE "^deb http://volatile.debian.org/debian-volatile" /etc/apt/sources.list \ + || failed "IS_REPVOLATILE" fi if is_debian_squeeze; then - (grep -qE "^deb.*squeeze-updates" /etc/apt/sources.list || failed "IS_REPVOLATILE") + grep -qE "^deb.*squeeze-updates" /etc/apt/sources.list \ + || failed "IS_REPVOLATILE" fi fi