gen_links.sh.inc: Fix globbing writing '*.ttcn' to */.gitignore

This was the case under ggsn_tests, which in turn prevents search text
tools like "ag" to find stuff in .ttcn files (because it skips code in
.gitignore).

Change-Id: Iaef3cfd5ae29db352046664ab4949b037ca80307
This commit is contained in:
Pau Espin 2022-03-18 18:37:42 +01:00 committed by laforge
parent 9e55abdfb1
commit bedb1fd1e2
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ gen_links() {
}
ignore_pp_results() {
# Avoid using the pattern itself if no file is found in globbing below:
shopt -s nullglob
for pp in *.ttcnpp; do
ttcn_file="$(echo $pp | sed 's/pp$//')"
echo "$ttcn_file" >> .gitignore