diff options
author | Adin Scannell <ascannell@google.com> | 2020-05-15 10:08:31 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-05-15 10:09:54 -0700 |
commit | c5a939d76c69c440b89045768c3acd8ffc5246b4 (patch) | |
tree | 30c59b6f85e169060ec79503eb62c5571000ff7b /tools/vm/defs.bzl | |
parent | 1847165a8c034e82cb35a0dc23878921cab30b5d (diff) |
Update vm scripts to handle existing kbuilder user.
PiperOrigin-RevId: 311751972
Diffstat (limited to 'tools/vm/defs.bzl')
-rw-r--r-- | tools/vm/defs.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vm/defs.bzl b/tools/vm/defs.bzl index 61feefcbc..0f67cfa92 100644 --- a/tools/vm/defs.bzl +++ b/tools/vm/defs.bzl @@ -60,7 +60,7 @@ def _vm_image_impl(ctx): # Run the builder to generate our output. echo = ctx.actions.declare_file(ctx.label.name) resolved_inputs, argv, runfiles_manifests = ctx.resolve_command( - command = "echo -ne \"#!/bin/bash\\necho $(%s)\\n\" > %s && chmod 0755 %s" % ( + command = "echo -ne \"#!/bin/bash\\nset -e\\nimage=$(%s)\\necho ${image}\\n\" > %s && chmod 0755 %s" % ( ctx.files.builder[0].path, echo.path, echo.path, |