From 9ba0fa5e5aba0cf96dffe6397fb71f3105d9380d Mon Sep 17 00:00:00 2001 From: Peter Urda Date: Thu, 27 Nov 2025 23:55:41 -0800 Subject: [PATCH] bugfix: version check --- CHANGELOG.md | 7 +++++++ VERSION | 2 +- bashrc | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebdba74..4241b4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## 1.1.1 + +This is a bugfix release. `_urdabash_version_check` would fail on some Linux instances. + +- `bashrc` + - Fixed an issue with checking the timestamp on the state object. + ## 1.1.0 - `bashrc` diff --git a/VERSION b/VERSION index 9084fa2..524cb55 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.0 +1.1.1 diff --git a/bashrc b/bashrc index 942e2f4..3246fd1 100644 --- a/bashrc +++ b/bashrc @@ -31,7 +31,7 @@ fi ################################################################################ if [[ -z ${URDABASH_VERSION+x} ]]; then - readonly URDABASH_VERSION="1.1.0" + readonly URDABASH_VERSION="1.1.1" export URDABASH_VERSION fi @@ -109,7 +109,7 @@ _urdabash_version_check() { now=$(date +%s) if [ -f "${stamp}" ]; then - last=$(stat -f %m "${stamp}" 2>/dev/null || stat -c %Y "${stamp}" 2>/dev/null || echo 0) + last=$(stat -c %Y "${stamp}" 2>/dev/null || stat -f %m "${stamp}" 2>/dev/null || echo 0) fi if [[ ${force_check_now} != now ]] && (( now - last < interval )); then return