X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=contrib%2Fformat.sh;h=ea1ed0157ae7847ad58cd018cf2cd2983bc13c47;hb=6a085256bb28d7542c22d6499668f8eb24f90444;hp=d4444cc28fc79d3ed7f57f31cd95ca83c4cd4e20;hpb=c7ce4fda9951172e770fe8d625af34aae74e0023;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