diff --git a/tests-ng/actions-pre.sh b/tests-ng/actions-pre.sh index 5f8949b..a0d3efa 100755 --- a/tests-ng/actions-pre.sh +++ b/tests-ng/actions-pre.sh @@ -50,9 +50,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)" # $2 path grep_or_fail() { - set +e grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) - set -e } # the action temp diff --git a/tests-ng/import-ignore.sh b/tests-ng/import-ignore.sh index ed7c69b..f6be416 100755 --- a/tests-ng/import-ignore.sh +++ b/tests-ng/import-ignore.sh @@ -50,9 +50,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)" # $2 path grep_or_fail() { - set +e grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) - set -e } # the dotfile source diff --git a/tests-ng/update-ignore-missing.sh b/tests-ng/update-ignore-missing.sh index b4bf7b8..21dc2b3 100755 --- a/tests-ng/update-ignore-missing.sh +++ b/tests-ng/update-ignore-missing.sh @@ -45,9 +45,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)" # $2 path grep_or_fail() { - set +e grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) - set -e } # dotdrop directory diff --git a/tests-ng/update-ignore.sh b/tests-ng/update-ignore.sh index 6c73dd1..acea979 100755 --- a/tests-ng/update-ignore.sh +++ b/tests-ng/update-ignore.sh @@ -50,9 +50,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)" # $2 path grep_or_fail() { - set +e grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) - set -e } # dotdrop directory diff --git a/tests-ng/update-negative-ignore.sh b/tests-ng/update-negative-ignore.sh index 125cfa0..77dc09c 100755 --- a/tests-ng/update-negative-ignore.sh +++ b/tests-ng/update-negative-ignore.sh @@ -78,9 +78,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)" # $2 path grep_or_fail() { - set +e grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) - set -e } # dotdrop directory