Replace #!/bin/bash -eu with #!/bin/bash and "set -eu". Otherwise, the "-eu" is not picked up when you run the scripts manually using "bash script.sh".

This is also in our shell style guide: "Executables must start with #!/bin/bash and a minimum number of flags. Use set to set shell options so that calling your script as bash <script_name> does not break its functionality."

--
MOS_MIGRATED_REVID=125450962
diff --git a/src/create_embedded_tools.sh b/src/create_embedded_tools.sh
index 3ddf6bb..9b39a2f 100755
--- a/src/create_embedded_tools.sh
+++ b/src/create_embedded_tools.sh
@@ -1,4 +1,4 @@
-#!/bin/bash -eu
+#!/bin/bash
 
 # Copyright 2015 The Bazel Authors. All rights reserved.
 #
@@ -14,6 +14,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+set -eu
+
 # This script is used to create the directory tree embedded into the Bazel
 # binary that is used as the default source for the @bazel_tools repository.
 # It shuffles around files compiled in other rules, then zips them up.