Skip to content

Commit ba0110e

Browse files
committed
fail if build-ffmpeg fails
1 parent c48d8e0 commit ba0110e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

descript/build-ffmpeg-descript.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ def buildFFmpeg(script_dir, log_file):
5959
'-b', # build
6060
'--full-shared', # custom Descript shim to build shared libraries instead of static
6161
'--enable-gpl-and-free'] # custom Descript shim to build GPL but not non-free (libpostproc is needed by Beamcoder and requires GPL)
62-
log_file.write(' '.join(args) + '\n\n')
63-
subprocess.call(args, env=env, stdout=log_file)
62+
log_file.write(' '.join(args) + '\n\n')
63+
log_file.flush()
64+
subprocess.run(args, env=env, stdout=log_file, stderr=log_file, check=True)
6465

6566
#
6667
#

0 commit comments

Comments
 (0)