diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-09-12 13:05:01 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-09-12 13:05:01 +0000 |
commit | f3e97ce9c7e3db25fb60c22e71505823be54f342 (patch) | |
tree | a35482cadba931ad0b018741a692cc4e35800899 | |
parent | 33c97cd5a14070178a1499fb7c3abe2e00e663fa (diff) |
avoid perl, use /usr/bin/stat from coreutils
-rwxr-xr-x | logd/src/apps/retention/retention-enforcer.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/src/apps/retention/retention-enforcer.sh b/logd/src/apps/retention/retention-enforcer.sh index 24bc61e5764..c4f94f71d89 100755 --- a/logd/src/apps/retention/retention-enforcer.sh +++ b/logd/src/apps/retention/retention-enforcer.sh @@ -80,7 +80,7 @@ check_pidfile() { } get_mod_time() { - perl -e 'print (((stat("'"$1"'"))[9]) . "\n")' + stat -c %Y -- "$1" } maybe_collect() { |