mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 20:50:05 +00:00
logging
This commit is contained in:
2
tests-ng/backup.sh
vendored
2
tests-ng/backup.sh
vendored
@@ -30,7 +30,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename "${BASH_SOURCE[0]}") <==$(tput sg
|
|||||||
grep_or_fail()
|
grep_or_fail()
|
||||||
{
|
{
|
||||||
if ! grep "${1}" "${2}" >/dev/null 2>&1; then
|
if ! grep "${1}" "${2}" >/dev/null 2>&1; then
|
||||||
echo "pattern not found in ${2}"
|
echo "pattern \"${1}\" not found in ${2}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user