Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
archiso
Commits
2f207fda
Verified
Commit
2f207fda
authored
Nov 02, 2021
by
David Runge
🐿
Browse files
Merge remote-tracking branch 'nl6720/date'
* nl6720/date: mkarchiso: replace external date command with printf
parents
a37c320a
f8862c26
Pipeline
#12857
failed with stages
in 54 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
archiso/mkarchiso
View file @
2f207fda
...
...
@@ -7,7 +7,8 @@ set -e -u
# Control the environment
umask
0022
export
LC_ALL
=
"C"
export
SOURCE_DATE_EPOCH
=
"
${
SOURCE_DATE_EPOCH
:-
"
$(
date
+%s
)
"
}
"
[[
-v
SOURCE_DATE_EPOCH
]]
||
printf
-v
SOURCE_DATE_EPOCH
'%(%s)T'
-1
export
SOURCE_DATE_EPOCH
# Set application name from the script's file name
app_name
=
"
${
0
##*/
}
"
...
...
@@ -113,7 +114,7 @@ ENDUSAGETEXT
# Shows configuration options.
_show_config
()
{
local
build_date
build_date
=
"
$(
date
--utc
--iso-8601
=
seconds
-d
"
@
${
SOURCE_DATE_EPOCH
}
"
)
"
printf
-v
build_date
'%(%FT%R%z)T'
"
${
SOURCE_DATE_EPOCH
}
"
_msg_info
"
${
app_name
}
configuration settings"
_msg_info
" Architecture:
${
arch
}
"
_msg_info
" Working directory:
${
work_dir
}
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment