Skip to content

Commit

Permalink
meson: add run_command check
Browse files Browse the repository at this point in the history
  • Loading branch information
dimmus committed Oct 26, 2023
1 parent 411dc54 commit a6ae325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Expand Up @@ -19,7 +19,7 @@ if version[2] == '99'
git_version = '0'
git = find_program('git', required: false)
if git.found() == true
git_cmd = run_command(git_program, 'rev-list', '--count', 'HEAD')
git_cmd = run_command(git_program, 'rev-list', '--count', 'HEAD', check: true)
if git_cmd.returncode() == 0
git_version = git_cmd.stdout().strip()
endif
Expand Down

0 comments on commit a6ae325

Please sign in to comment.