beautysh: re-format
beautysh is enabled in the openbmc-build-scripts on Bash/Zsh/POSIX-sh
files to have a consistent formatting. Re-run the formatter on the
whole repository.
Change-Id: I4b58e3efdd066b9be2aceabed72c749a472e59a5
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/run_with_tmp b/src/run_with_tmp
index 8b8895a..41fab30 100755
--- a/src/run_with_tmp
+++ b/src/run_with_tmp
@@ -1,14 +1,14 @@
#!/bin/bash
TMPDIR="$(mktemp -d --tmpdir "${TMPTMPL-tmp.XXXXXXXXXX}")" || exit
-rmtmp() {
- if [ -n "${TMP_DEBUG-}" ]; then
- echo "Removing TMPDIR=$TMPDIR" >&2
- fi
- rm -rf -- "$TMPDIR"
+function rmtmp() {
+ if [ -n "${TMP_DEBUG-}" ]; then
+ echo "Removing TMPDIR=$TMPDIR" >&2
+ fi
+ rm -rf -- "$TMPDIR"
}
trap rmtmp EXIT
export TMPDIR
if [ -n "${TMP_DEBUG-}" ]; then
- echo "Exec $* with TMPDIR=$TMPDIR" >&2
+ echo "Exec $* with TMPDIR=$TMPDIR" >&2
fi
"$@"