2024-10-31
This commit is contained in:
parent
4c0e47830c
commit
928f0beebe
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ function directory_tree {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
# line of exclusions for "ls" from ".gitignore" list — the untracked files
|
# line of exclusions for "ls" from ".gitignore" list — the untracked files
|
||||||
exclusions="-I \".git\" $(sed 's/^/ -I "/;s/$/"/' .gitignore | tr -d '\n')"
|
exclusions="-I'.git' $(sed -E "s|^(.*)$|-I'\1'|" .gitignore | tr '\n' ' ')"
|
||||||
# put the tree in a container, add a title and output to a file
|
# put the tree in a container, add a title and output to a file
|
||||||
{
|
{
|
||||||
echo "## Directory tree"
|
echo "## Directory tree"
|
||||||
|
|
|
@ -62,7 +62,7 @@ function directory_tree {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
# строка исключений для "ls" из списка ".gitignore" — неотслеживаемые файлы
|
# строка исключений для "ls" из списка ".gitignore" — неотслеживаемые файлы
|
||||||
exclusions="-I \".git\" $(sed 's/^/ -I "/;s/$/"/' .gitignore | tr -d '\n')"
|
exclusions="-I'.git' $(sed -E "s|^(.*)$|-I'\1'|" .gitignore | tr '\n' ' ')"
|
||||||
# помещаем дерево в контейнер, добавляем заголовок и выводим в файл
|
# помещаем дерево в контейнер, добавляем заголовок и выводим в файл
|
||||||
{
|
{
|
||||||
echo "## Дерево каталогов"
|
echo "## Дерево каталогов"
|
||||||
|
|
Loading…
Add table
Reference in a new issue