From: Jordan Petridis Date: Thu, 23 Jul 2026 13:29:38 +0000 (+0300) Subject: build: Check for directory in the git_werror check X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;p=thirdparty%2Flibvirt.git build: Check for directory in the git_werror check test -e will only check if something exists, but -d is more appropriate as it will check that it exists and is also a directory. Signed-off-by: Jordan Petridis Reviewed-by: Ján Tomko --- diff --git a/meson.build b/meson.build index ad1a5da1a5..6d5085042c 100644 --- a/meson.build +++ b/meson.build @@ -21,7 +21,7 @@ po_dir = meson.project_source_root() / 'po' # figure out if we are building from git -git = run_command('test', '-e', '.git', check: false).returncode() == 0 +git = run_command('test', '-d', '.git', check: false).returncode() == 0 if git and not get_option('no_git') run_command('git', 'submodule', 'update', '--init', check: true)