X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fformat.sh;fp=contrib%2Fformat.sh;h=ea1ed0157ae7847ad58cd018cf2cd2983bc13c47;hb=90862a2f4cf9c5752fac4c50cd3206af63b88b71;hp=d4444cc28fc79d3ed7f57f31cd95ca83c4cd4e20;hpb=0dd723313db820eafeb9edcf58815b53a29e55d8;p=collectd.git diff --git a/contrib/format.sh b/contrib/format.sh index d4444cc2..ea1ed015 100755 --- a/contrib/format.sh +++ b/contrib/format.sh @@ -10,8 +10,8 @@ if test $# -lt 1; then 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