From: Jordan Petridis <[email protected]>

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 <[email protected]>
Reviewed-by: Ján Tomko <[email protected]>
---
Pushed


 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)
-- 
2.55.0

Reply via email to