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:
parent
9e55abdfb1
commit
bedb1fd1e2
|
@ -36,6 +36,8 @@ gen_links() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ignore_pp_results() {
|
ignore_pp_results() {
|
||||||
|
# Avoid using the pattern itself if no file is found in globbing below:
|
||||||
|
shopt -s nullglob
|
||||||
for pp in *.ttcnpp; do
|
for pp in *.ttcnpp; do
|
||||||
ttcn_file="$(echo $pp | sed 's/pp$//')"
|
ttcn_file="$(echo $pp | sed 's/pp$//')"
|
||||||
echo "$ttcn_file" >> .gitignore
|
echo "$ttcn_file" >> .gitignore
|
||||||
|
|
Loading…
Reference in New Issue