diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-24 12:58:00 +0200 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2021-08-24 12:58:00 +0200 |
commit | 3b7345f71bd6a997b30d37f5c0a40fe4a264ccbd (patch) | |
tree | 43fd3bfb7e4e147afdee488f6c5e83e13e47ca7f | |
parent | b6b0134ae35ff3276dc49248517fd54d4a0a83d1 (diff) | |
download | midipix_build-3b7345f71bd6a997b30d37f5c0a40fe4a264ccbd.tar.bz2 midipix_build-3b7345f71bd6a997b30d37f5c0a40fe4a264ccbd.tar.xz |
subr.rtl/rtl_filepath.subr:rtl_is_newer(): correctly silence stat(1)'s stderr.
-rw-r--r-- | subr.rtl/rtl_filepath.subr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subr.rtl/rtl_filepath.subr b/subr.rtl/rtl_filepath.subr index fa1baf57..671f8534 100644 --- a/subr.rtl/rtl_filepath.subr +++ b/subr.rtl/rtl_filepath.subr @@ -83,8 +83,8 @@ rtl_is_newer() { local _new_fname="${1}" _old_fname="${2}" _new_ts="" _old_ts=""; if ! [ -e "${_old_fname}" ]; then return 0; - else _new_ts="$(stat -c %Y "${_new_fname}" 2>&1)"; - _old_ts="$(stat -c %Y "${_old_fname}" 2>&1)"; + else _new_ts="$(stat -c %Y "${_new_fname}" 2>/dev/null)"; + _old_ts="$(stat -c %Y "${_old_fname}" 2>/dev/null)"; if [ "${_new_ts:-0}" -gt "${_old_ts:-0}" ]; then return 0; else |