aboutsummaryrefslogtreecommitdiff
path: root/etc/format-check.sh
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-16 01:10:00 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-16 01:10:00 -0700
commitaede989d57eb947c0e0cfc6e23374541c78e4ff6 (patch)
tree92e10edc91ca47d49548b4dbd21b036539fdcf35 /etc/format-check.sh
parent89c4ae87f3d927c8a6a760b6706b3a8e386dfb55 (diff)
downloadnng-aede989d57eb947c0e0cfc6e23374541c78e4ff6.tar.gz
nng-aede989d57eb947c0e0cfc6e23374541c78e4ff6.tar.bz2
nng-aede989d57eb947c0e0cfc6e23374541c78e4ff6.zip
Fixup for clang-format when run from /etc.
Diffstat (limited to 'etc/format-check.sh')
-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}