Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
back to how it used to work?
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaudill committed Jun 5, 2024
1 parent b859089 commit 54c2ee8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/ch-image.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def main():
add_opts(sp, build.modify, deps_check=True, stog_init=True)
sp.add_argument("-c", metavar="CMD", action="append", default=[], nargs=1, help="foo")
sp.add_argument("-S", "--shell", metavar="shell", help="foo")
# FIXME: remove
sp.add_argument("--ci-debug", action="store_true", help="CI debugging, remove this before merge!")
sp.add_argument("image_ref", metavar="IMAGE_REF", help="image to modify")
sp.add_argument("out_image", metavar="OUT_IMAGE", help="destination of modified image")
Expand Down
4 changes: 3 additions & 1 deletion lib/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,13 @@ def modify(cli_):
ch.ILLERI(cli.script)


if ((not sys.stdin.isatty()) and (commands == [])):
if ((not sys.stdin.isatty()) and (commands == []) and (not cli.ci_debug)):
# https://stackoverflow.com/a/6482200

stdin = sys.stdin.read()


# FIXME: remove
if (cli.ci_debug):
ch.INFO("STDIN!!!")
ch.INFO(stdin)
Expand Down

0 comments on commit 54c2ee8

Please sign in to comment.