Skip to content

Commit

Permalink
build: Add check for run_command
Browse files Browse the repository at this point in the history
This addresses the following 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: mesonbuild/meson#9300
```
  • Loading branch information
TheEvilSkeleton committed Dec 7, 2024
1 parent 779951d commit 67f7e52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ devel = get_option('devel')

if devel == true
APP_VERSION += '-' + run_command(
'git', 'rev-parse', '--short', 'HEAD'
'git', 'rev-parse', '--short', 'HEAD',
check: true
).stdout().strip()
APP_NAME += ' (Development)'
APP_ID += '.' + 'Devel'
Expand Down

0 comments on commit 67f7e52

Please sign in to comment.