File: fix_bashisms.patch

package info (click to toggle)
bazel-bootstrap 4.2.3%2Bds-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 85,704 kB
  • sloc: java: 721,717; sh: 55,859; cpp: 35,360; python: 12,139; xml: 295; objc: 269; makefile: 113; ansic: 106; ruby: 3
file content (36 lines) | stat: -rw-r--r-- 1,086 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Fix bashisms
 First file fixed from upstream, second and third files fixed in Debian because
 they were eliminated upstream in tags 6.0.0-pre.20220310.1 and 5.0.0.
Author: Philipp Wollermann <philwo@google.com>
Author: Olek Wojnar <olek@debian.org>
Origin: upstream, https://github.com/bazelbuild/bazel/commit/1ad391b0f80eaccc77f735fd7ca19608dcbb9644
Forwarded: not-needed
Last-Update: 2022-09-21

--- a/combine_distfiles_to_tar.sh
+++ b/combine_distfiles_to_tar.sh
@@ -41,7 +41,7 @@
 done
 
 ID_OPTS="--group=0 --owner=0"
-if [ "$(uname -s)" == "Darwin" ]; then
+if [ "$(uname -s)" = "Darwin" ]; then
   ID_OPTS="--gid=0 --uid=0"
 fi
 
--- a/scripts/docs/jekyll_build.sh.tpl
+++ b/scripts/docs/jekyll_build.sh.tpl
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 HOST="${HOST-localhost}"
 PORT="${PORT-12345}"
 RUNFILES=$(cd ${JAVA_RUNFILES-$0.runfiles}/%{workspace_name} && pwd -P)
--- a/src/tools/xcode/stdredirect/run_tests.sh
+++ b/src/tools/xcode/stdredirect/run_tests.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # Copyright 2015 The Bazel Authors. All rights reserved.
 #