Skip to content

Commit 937657f

Browse files
committed
fix
1 parent d651252 commit 937657f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/core/image.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _run_command(self, cmd):
142142
if on_travis:
143143
self._run_command_on_travis(cmd)
144144
return
145-
print("\033[1m$ %s\033[0m" % cmd, flush=True)
145+
print("\033[34m$ %s\033[0m" % cmd, flush=True)
146146
exit_code = os.system(cmd)
147147
if exit_code != 0:
148148
raise RuntimeError("Failed to build (exit_code=%s)" % exit_code)
@@ -274,7 +274,7 @@ def push(self, platform: Platform, no_cache: bool = False, dirty_push: bool = Fa
274274
sys.stdout.flush()
275275

276276
cmd = "docker push {}".format(tag)
277-
print("\033[1m$ %s\033[0m".format(cmd), flush=True)
277+
print("\033[34m$ %s\033[0m" % cmd, flush=True)
278278
output = execute(cmd)
279279
print("%s" % output.rstrip(), flush=True)
280280
last_line = output.splitlines()[-1]
@@ -303,23 +303,23 @@ def push(self, platform: Platform, no_cache: bool = False, dirty_push: bool = Fa
303303

304304
if len(tags) > 0:
305305
cmd += " " + tags
306-
print("\033[1m$ %s\033[0m".format(cmd), flush=True)
306+
print("\033[34m$ %s\033[0m" % cmd, flush=True)
307307
if os.system(cmd) != 0:
308308
raise Exception("Failed to create manifest")
309309

310310
cmd = f"docker manifest push -p {t0}"
311-
print("\033[1m$ %s\033[0m".format(cmd), flush=True)
311+
print("\033[34m$ %s\033[0m" % cmd, flush=True)
312312
if os.system(cmd) != 0:
313313
raise Exception("Failed to push manifest")
314314

315315
else:
316316
cmd = f"docker manifest create {t0} {new_manifest}"
317-
print("\033[1m$ %s\033[0m".format(cmd), flush=True)
317+
print("\033[34m$ %s\033[0m" % cmd, flush=True)
318318
if os.system(cmd) != 0:
319319
raise Exception("Failed to create manifest")
320320

321321
cmd = f"docker manifest push -p {t0}"
322-
print("\033[1m$ %s\033[0m".format(cmd), flush=True)
322+
print("\033[34m$ %s\033[0m" % cmd, flush=True)
323323
if os.system(cmd) != 0:
324324
raise Exception("Failed to push manifest")
325325

0 commit comments

Comments
 (0)