git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormail_redacted_for_web 2026-03-11 02:06:44 +0100
committermail_redacted_for_web 2026-03-11 02:06:44 +0100
commitd71798fa39365cd91ce9c7a9a289b2ac297a6c13 (patch)
tree06924292dfb71691558841d34770855a6c48c5d1
parentcf4ad66b492dce1c4044591a23e151bdf042b6f9 (diff)
downloaddotfiles-d71798fa39365cd91ce9c7a9a289b2ac297a6c13.tar.bz2
feat: also include BUILD_ID in prompt's OS version
-rw-r--r--.bash/vars.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/.bash/vars.bash b/.bash/vars.bash
index 55a59f3..3bc68cd 100644
--- a/.bash/vars.bash
+++ b/.bash/vars.bash
@@ -30,6 +30,8 @@ if [ -r "/etc/os-release" ];then
OSNAME="$(grep ^ID /etc/os-release|awk -F= '{print $NF}'|head -n1|sed 's/"//g')"
if grep '^DEBIAN_VERSION_FULL' /etc/os-release >/dev/null 2>&1; then
OSVER="$(grep '^DEBIAN_VERSION_FULL' /etc/os-release|awk -F= '{print $NF}'|head -n1|sed 's/"//g')"
+ elif grep '^BUILD_ID' /etc/os-release >/dev/null 2>&1; then
+ OSVER="$(grep '^BUILD_ID' /etc/os-release|awk -F= '{print $NF}'|head -n1|sed 's/"//g')"
else
OSVER="$(grep '^VERSION_ID' /etc/os-release|awk -F= '{print $NF}'|head -n1|sed 's/"//g')"
fi