55set -uo pipefail
66set +e
77f=bazel_tools/tools/bash/runfiles/runfiles.bash
8- source " ${RUNFILES_DIR:-/ dev/ null} /$f " 2> /dev/null \
9- || source " $( grep -sm1 " ^$f " " ${RUNFILES_MANIFEST_FILE:-/ dev/ null} " | cut -f2- -d' ' ) " 2> /dev/null \
10- || source " $0 .runfiles/$f " 2> /dev/null \
11- || source " $( grep -sm1 " ^$f " " $0 .runfiles_manifest" | cut -f2- -d' ' ) " 2> /dev/null \
12- || source " $( grep -sm1 " ^$f " " $0 .exe.runfiles_manifest" | cut -f2- -d' ' ) " 2> /dev/null \
13- || {
8+ source " ${RUNFILES_DIR:-/ dev/ null} /$f " 2> /dev/null ||
9+ source " $( grep -sm1 " ^$f " " ${RUNFILES_MANIFEST_FILE:-/ dev/ null} " | cut -f2- -d' ' ) " 2> /dev/null ||
10+ source " $0 .runfiles/$f " 2> /dev/null ||
11+ source " $( grep -sm1 " ^$f " " $0 .runfiles_manifest" | cut -f2- -d' ' ) " 2> /dev/null ||
12+ source " $( grep -sm1 " ^$f " " $0 .exe.runfiles_manifest" | cut -f2- -d' ' ) " 2> /dev/null ||
13+ {
1414 echo >&2 " ERROR: ${BASH_SOURCE[0]} cannot find $f "
1515 exit 1
1616 }
@@ -23,29 +23,29 @@ set -e
2323function rlocation_as_unix() {
2424 path=" $( rlocation ${1} ) "
2525 case " $( uname -s) " in
26- CYGWIN* | MINGW32* | MSYS* | MINGW* )
27- path=${path// \\ // } # backslashes to forward
28- path=/${path//:/ } # d:/ to /d/
29- ;;
26+ CYGWIN* | MINGW32* | MSYS* | MINGW* )
27+ path=${path// \\ // } # backslashes to forward
28+ path=/${path//:/ } # d:/ to /d/
29+ ;;
3030 esac
3131 echo " $path "
3232}
3333
3434# MARK - Locate Deps
3535
3636assertions_sh_location=cgrindel_bazel_starlib/shlib/lib/assertions.sh
37- assertions_sh=" $( rlocation_as_unix " ${assertions_sh_location} " ) " \
38- || (echo >&2 " Failed to locate ${assertions_sh_location} " && exit 1)
37+ assertions_sh=" $( rlocation_as_unix " ${assertions_sh_location} " ) " ||
38+ (echo >&2 " Failed to locate ${assertions_sh_location} " && exit 1)
3939# shellcheck source=SCRIPTDIR/../../../../shlib/lib/assertions.sh
4040source " ${assertions_sh} "
4141
4242archive_tar_gz_location=cgrindel_bazel_starlib/tests/bzlrelease_tests/rules_tests/release_artifact_tests/archive.tar.gz
43- archive_tar_gz=" $( rlocation_as_unix " ${archive_tar_gz_location} " ) " \
44- || (echo >&2 " Failed to locate ${archive_tar_gz_location} " && exit 1)
43+ archive_tar_gz=" $( rlocation_as_unix " ${archive_tar_gz_location} " ) " ||
44+ (echo >&2 " Failed to locate ${archive_tar_gz_location} " && exit 1)
4545
4646tar_exe_location=cgrindel_bazel_starlib/tools/tar/tar.exe
47- tar=" $( rlocation " ${tar_exe_location} " ) " \
48- || (echo >&2 " Failed to locate ${tar_exe_location} " && exit 1)
47+ tar=" $( rlocation " ${tar_exe_location} " ) " ||
48+ (echo >&2 " Failed to locate ${tar_exe_location} " && exit 1)
4949
5050# MARK - Test
5151
0 commit comments