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>
# 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()