Make bootstrap scripts sh scripts
The simple replacement scripts for for build-runfiles and
process-wrapper do not use any bash-specific feature. Hence
we can make then scripts for /bin/sh which has the advatange
that that path is POSIX mandated, wheras bash could be installed
anywhere on the system.
--
Change-Id: I933d04be89e3c9ffc5673d8778b4754782cc4bdd
Reviewed-on: https://bazel-review.googlesource.com/#/c/3601
MOS_MIGRATED_REVID=122046251
diff --git a/scripts/bootstrap/compile.sh b/scripts/bootstrap/compile.sh
index 1ba38c5..cba3ae3 100755
--- a/scripts/bootstrap/compile.sh
+++ b/scripts/bootstrap/compile.sh
@@ -195,7 +195,7 @@
# Dummy build-runfiles
cat <<'EOF' >${ARCHIVE_DIR}/_embedded_binaries/build-runfiles${EXE_EXT}
-#!/bin/bash
+#!/bin/sh
win_arg='--windows_compatible'
if [ $1 == $win_arg ];
then
@@ -208,7 +208,7 @@
log "Creating process-wrapper..."
cat <<'EOF' >${ARCHIVE_DIR}/_embedded_binaries/process-wrapper${EXE_EXT}
-#!/bin/bash
+#!/bin/sh
# Dummy process wrapper, does not support timeout
shift 2
stdout="$1"