2022-03-15 11:55:32 +00:00
|
|
|
source common.sh
|
|
|
|
|
2022-03-15 20:05:01 +00:00
|
|
|
touch foo -t 202211111111
|
2022-03-15 11:55:32 +00:00
|
|
|
# We only check whether 2222-11-1* **:**:** is the last modified date since
|
|
|
|
# `lastModified` is transformed into UTC in `builtins.fetchTarball`.
|
2022-03-15 20:05:01 +00:00
|
|
|
[[ "$(nix eval --impure --raw --expr "(builtins.fetchTree \"path://$PWD/foo\").lastModifiedDate")" =~ 2022111.* ]]
|