summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0dd7233)
raw | patch | inline | side by side (parent: 0dd7233)
author | Florian Forster <octo@collectd.org> | |
Sun, 29 Oct 2017 09:24:02 +0000 (10:24 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 29 Oct 2017 09:24:02 +0000 (10:24 +0100) |
contrib/format.sh | patch | blob | history |
diff --git a/contrib/format.sh b/contrib/format.sh
index d4444cc28fc79d3ed7f57f31cd95ca83c4cd4e20..ea1ed0157ae7847ad58cd018cf2cd2983bc13c47 100755 (executable)
--- a/contrib/format.sh
+++ b/contrib/format.sh
fi
for i in "$@"; do
- d="$(dirname "${i}")"
- o="$(tempfile -d "${d}" -m 0644)"
+ d="`dirname "${i}"`"
+ o="`TMPDIR="${d}" mktemp format.XXXXXX`"
curl --silent --data-binary "@-" https://clang-format.appspot.com/ <"${i}" >"${o}"
if test $? -eq 0; then