From 90862a2f4cf9c5752fac4c50cd3206af63b88b71 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 29 Oct 2017 10:24:02 +0100 Subject: [PATCH 1/1] contrib/format.sh: Fix bashisms. --- contrib/format.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2