From 426b61931a1f64eabf2a54c2ee236a0f9f9f0eff Mon Sep 17 00:00:00 2001 From: Eryk Szpotanski Date: Wed, 17 Apr 2024 13:46:27 +0200 Subject: [PATCH] make_script.template.sh: Format script and remove semicolons Signed-off-by: Eryk Szpotanski --- make_script.template.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/make_script.template.sh b/make_script.template.sh index 79892c7c..deebd063 100755 --- a/make_script.template.sh +++ b/make_script.template.sh @@ -1,8 +1,16 @@ -set -uo pipefail; set +e; f=bazel_tools/tools/bash/runfiles/runfiles.bash; +#!/bin/bash +set -uo pipefail +set +e +f=bazel_tools/tools/bash/runfiles/runfiles.bash source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || source "$0.runfiles/$f" 2>/dev/null || source "$(grep -sm1 "^$f " "$0.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || source "$(grep -sm1 "^$f " "$0.exe.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || - { echo>&2 "ERROR: cannot find $f"; exit 1; }; f=; set -e; + { + echo>&2 "ERROR: cannot find $f" + exit 1 + } +f= +set -e