]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson.build: strip newline for variable assignments 4227/head
authorRamkumar Chinchani <rchincha@cisco.com>
Wed, 23 Nov 2022 19:49:30 +0000 (19:49 +0000)
committerRamkumar Chinchani <rchincha@cisco.com>
Wed, 23 Nov 2022 19:54:53 +0000 (19:54 +0000)
Unfortunately, builds using alpine:edge still break!
Apparently, run_command(...).stdout() must be strip()'ed for variable
assignments

Addendum to d5600cf76a4d932a03ea75aea6dd6c997a4e2f35
Fixes issue #4223

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
meson.build

index fe6808696849ce91836471990893c7b52c914a96..fdf51dd5e8d6ab807e64cac9146162d784b59572 100644 (file)
@@ -330,7 +330,7 @@ endif
 
 # Fallback to current epoch.
 if time_epoch == ''
-    time_epoch = run_command(date, '+%s', check: true).stdout()
+    time_epoch = run_command(date, '+%s', check: true).stdout().strip()
 endif
 generate_date = run_command(date, '--utc', '--date=@' + time_epoch, '+%Y-%m-%d', check: true).stdout().strip()