Skip to content

Commit 1683e1d

Browse files
committed
Lookup bash exe location before calling meson-vcs-tag.sh.
1 parent 3ed146c commit 1683e1d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,11 @@ version_tag = get_option('version-tag')
123123
if version_tag != ''
124124
conf.set('GIT_VERSION', '"@0@"'.format(version_tag))
125125
else
126+
# Find the path to bash and use it so we don't pick up the WSL bash in Windows.
127+
bash_prog = find_program('bash', required: true)
126128
r = run_command(
127-
'scripts/meson-vcs-tag.sh',
129+
bash_prog,
130+
files('scripts/meson-vcs-tag.sh'),
128131
meson.current_source_dir(),
129132
meson.project_version(),
130133
check: true,

0 commit comments

Comments
 (0)