mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 16:49:42 +00:00
fix tests
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user