1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 16:49:42 +00:00

fix tests

This commit is contained in:
deadc0de6
2021-10-12 21:09:46 +02:00
parent 2704df494a
commit cc36899a7d
5 changed files with 0 additions and 10 deletions

View File

@@ -50,9 +50,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)"
# $2 path # $2 path
grep_or_fail() grep_or_fail()
{ {
set +e
grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1)
set -e
} }
# the action temp # the action temp

View File

@@ -50,9 +50,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)"
# $2 path # $2 path
grep_or_fail() grep_or_fail()
{ {
set +e
grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1)
set -e
} }
# the dotfile source # the dotfile source

View File

@@ -45,9 +45,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)"
# $2 path # $2 path
grep_or_fail() grep_or_fail()
{ {
set +e
grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1)
set -e
} }
# dotdrop directory # dotdrop directory

View File

@@ -50,9 +50,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)"
# $2 path # $2 path
grep_or_fail() grep_or_fail()
{ {
set +e
grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1)
set -e
} }
# dotdrop directory # dotdrop directory

View File

@@ -78,9 +78,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)"
# $2 path # $2 path
grep_or_fail() grep_or_fail()
{ {
set +e
grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1) grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1)
set -e
} }
# dotdrop directory # dotdrop directory