Skip to content

Commit

Permalink
meson: set check kwarg for run_command
Browse files Browse the repository at this point in the history
Current logic expects this to be set to false.

Fixes:
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

Signed-off-by: James Hilliard <[email protected]>
  • Loading branch information
jameshilliard authored and michaelgruner committed Jun 16, 2022
1 parent babeb30 commit 1d67c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ pkgconfig = import('pkgconfig')

# Install git hooks
run_command('rm', '-f', '.git/hooks/pre-commit',
'.git/hooks/pre-commit')
r = run_command('ln', '-s', '../../common/hooks/pre-commit.hook', '.git/hooks/pre-commit')
'.git/hooks/pre-commit', check: false)
r = run_command('ln', '-s', '../../common/hooks/pre-commit.hook', '.git/hooks/pre-commit', check: false)
if r.returncode() != 0
warning('Failed to create commit hook')
endif
Expand Down

0 comments on commit 1d67c5d

Please sign in to comment.