mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 16:04:16 +00:00
refactoring
This commit is contained in:
5
tests-ng/actions-pre.sh
vendored
5
tests-ng/actions-pre.sh
vendored
@@ -31,7 +31,10 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename "${BASH_SOURCE[0]}") <==$(tput sg
|
|||||||
# $2 path
|
# $2 path
|
||||||
grep_or_fail()
|
grep_or_fail()
|
||||||
{
|
{
|
||||||
grep "${1}" "${2}" >/dev/null 2>&1 || (echo "pattern not found in ${2}" && exit 1)
|
if ! grep "${1}" "${2}" >/dev/null 2>&1; then
|
||||||
|
echo "pattern not found in ${2}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# the action temp
|
# the action temp
|
||||||
|
|||||||
Reference in New Issue
Block a user