Always initialise final_command.

pull/574/head
Jussi Pakkanen 9 years ago
parent c2082146ab
commit 9dace5fc5e
  1. 3
      mesonbuild/scripts/meson_install.py

@ -106,6 +106,7 @@ def run_install_script(d):
child_env.update(env)
for i in d.install_scripts:
final_command = i.cmd_arr
script = i.cmd_arr[0]
print('Running custom install script %s' % script)
suffix = os.path.splitext(script)[1].lower()
@ -120,8 +121,6 @@ def run_install_script(d):
if commands[0] is None:
raise RuntimeError("Don't know how to run script %s." % script)
final_command = commands + [script] + i.cmd_arr[1:]
else:
final_command = i.cmd_arr
try:
rc = subprocess.call(final_command, env=child_env)
if rc != 0:

Loading…
Cancel
Save