Skip to content

Commit

Permalink
Simplify if expression by using or (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans authored Jul 16, 2021
1 parent 7c1d3f1 commit 8b45dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mkdeb.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def main() -> int:
config = read_config(config_file)

cmd = config.get('build', {}).get('install', {}).get('cmd')
install_cmd = cmd if cmd else ['make', 'install']
install_cmd = cmd or ['make', 'install']
install_env = config.get('build', {}).get('install', {}).get('env', {})
for key, val in install_env.items():
install_env[key] = parse_env(val, os.environ)
Expand Down

0 comments on commit 8b45dc2

Please sign in to comment.