diff options
author | Simon Ser <contact@emersion.fr> | 2022-03-05 09:44:43 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-03-05 09:44:43 +0100 |
commit | 3874badf94ada966ca0ac3a8c1fa1e4e915a76d3 (patch) | |
tree | c62e7376702bd37739767e65a54d5e9a550ad401 | |
parent | e10d02c77e54cb035c625e255f0df208cb3c86a0 (diff) | |
download | swaybg-3874badf94ada966ca0ac3a8c1fa1e4e915a76d3.tar.gz swaybg-3874badf94ada966ca0ac3a8c1fa1e4e915a76d3.tar.bz2 |
build: set check arg in run_command call
Fixes the following Meson warning:
WARNING: You should add the boolean check kwarg to the run_command call.
It currently defaults to false,
but it will default to true in future releases of meson.
See also: https://github.com/mesonbuild/meson/issues/9300
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 1c06648..802dcd3 100644 --- a/meson.build +++ b/meson.build @@ -37,8 +37,8 @@ scdoc = find_program('scdoc', required: get_option('man-pages'), native: true) version = '"@0@"'.format(meson.project_version()) if git.found() - git_commit_hash = run_command([git, 'describe', '--always', '--tags']) - git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD']) + git_commit_hash = run_command([git, 'describe', '--always', '--tags'], check: false) + git_branch = run_command([git, 'rev-parse', '--abbrev-ref', 'HEAD'], check: false) if git_commit_hash.returncode() == 0 and git_branch.returncode() == 0 version = '"@0@ (" __DATE__ ", branch \'@1@\')"'.format(git_commit_hash.stdout().strip(), git_branch.stdout().strip()) endif |