1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 12:46:44 +00:00

fix backup

This commit is contained in:
deadc0de6
2024-08-22 14:09:09 +02:00
committed by deadc0de
parent fe40a1e836
commit f6c531e313

4
tests-ng/backup.sh vendored
View File

@@ -30,6 +30,10 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename "${BASH_SOURCE[0]}") <==$(tput sg
# $2 path
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
echo "pattern \"${1}\" not found in ${2}"
echo "content:"