aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/format-check.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/format-check.sh b/etc/format-check.sh
index ea9bd2f2..4a779080 100755
--- a/etc/format-check.sh
+++ b/etc/format-check.sh
@@ -26,7 +26,8 @@ fi
mytmpdir=`mktemp -d`
-for file in `find ${srcdir} -name '*.[ch]' -print`
+cd ${srcdir}
+for file in `find . -name '*.[ch]' -print`
do
ext=${file##*.}
oldf=${file}