summaryrefslogtreecommitdiff
path: root/tools/test_scripts/testheaders.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test_scripts/testheaders.sh')
-rwxr-xr-xtools/test_scripts/testheaders.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test_scripts/testheaders.sh b/tools/test_scripts/testheaders.sh
index 150ada4e..c66faa21 100755
--- a/tools/test_scripts/testheaders.sh
+++ b/tools/test_scripts/testheaders.sh
@@ -53,7 +53,7 @@ shift
# Search for more directories to include in CFLAGS.
for i in "$@"
do
- if [ -d "$1" ]
+ if [ -d "$i" ]
then
idirs+=" -I$i"
fi