[gnome-sound-recorder/ebassi/build-back-better: 4/5] build: Add check to run_command()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder/ebassi/build-back-better: 4/5] build: Add check to run_command()
- Date: Sat, 3 Sep 2022 15:22:08 +0000 (UTC)
commit 43fab994c0d212150a4d12288486cb83fd05fdb0
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Aug 15 17:11:02 2022 +0100
build: Add check to run_command()
We want to fail if the command we are running fails.
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index a5757fd..66932e9 100644
--- a/meson.build
+++ b/meson.build
@@ -8,7 +8,7 @@ project(
if get_option('profile') == 'development'
profile = 'Devel'
name_suffix = ' (Development)'
- vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
+ vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD', check: true).stdout().strip()
if vcs_tag == ''
version_suffix = '-devel'
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]