mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-03-22 23:05:08 +00:00
fix backup
This commit is contained in:
4
tests-ng/backup.sh
vendored
4
tests-ng/backup.sh
vendored
@@ -30,6 +30,10 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename "${BASH_SOURCE[0]}") <==$(tput sg
|
|||||||
# $2 path
|
# $2 path
|
||||||
grep_or_fail()
|
grep_or_fail()
|
||||||
{
|
{
|
||||||
|
if [ ! -e "${2}" ]; then
|
||||||
|
echo "file \"${2}\" does not exist"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if ! grep "${1}" "${2}" >/dev/null 2>&1; then
|
if ! grep "${1}" "${2}" >/dev/null 2>&1; then
|
||||||
echo "pattern \"${1}\" not found in ${2}"
|
echo "pattern \"${1}\" not found in ${2}"
|
||||||
echo "content:"
|
echo "content:"
|
||||||
|
|||||||
Reference in New Issue
Block a user