]> git.proxmox.com Git - mirror_lxc.git/commitdiff
meson.build: strip newline for variable assignments
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:57:21 +0000 (19:57 +0000)
Unfortunately, builds using alpine:edge still break!
Apparently, run_command(...).stdout() must be strip()'ed for variable
assignments

Addendum to 60e292c64a5d72b1061a46386688ccf8b7d78b1e
Fixes issue #4223

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

index cfc9b9713c3d2bd412e81af2ece7e275841fe9aa..9bf3282153889dde470d0d85c6a37e1d10c0899a 100644 (file)
@@ -336,7 +336,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()