set-source-date-epoch-to-latest.sh: Support Darwin
This commit is contained in:
parent
81e530a749
commit
38460cfe72
@ -1,12 +1,6 @@
|
|||||||
updateSourceDateEpoch() {
|
updateSourceDateEpoch() {
|
||||||
local path="$1"
|
local path="$1"
|
||||||
|
|
||||||
# FIXME: Support Darwin.
|
|
||||||
if ! [[ $system =~ linux ]]; then
|
|
||||||
exit 1
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get the last modification time of all regular files, sort them,
|
# Get the last modification time of all regular files, sort them,
|
||||||
# and get the most recent. Maybe we should use
|
# and get the most recent. Maybe we should use
|
||||||
# https://github.com/0-wiz-0/findnewest here.
|
# https://github.com/0-wiz-0/findnewest here.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user