From: Florian Forster Date: Sun, 29 Oct 2017 09:24:02 +0000 (+0100) Subject: contrib/format.sh: Fix bashisms. X-Git-Tag: collectd-5.8.0~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=90862a2f4cf9c5752fac4c50cd3206af63b88b71;p=collectd.git contrib/format.sh: Fix bashisms. --- 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