Use full debian_version

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:29 -04:00
parent 2a925904e4
commit 57010260bd
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ TMPFILE=$(mktemp)
TGTFILE=/run/pvc-motd.dynamic TGTFILE=/run/pvc-motd.dynamic
NAME="$( grep '^NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )" NAME="$( grep '^NAME=' /etc/os-release | awk -F'"' '{ print $2 }' )"
VERSION_ID="$( grep '^VERSION_ID=' /etc/os-release | awk -F'"' '{ print $2 }' )" VERSION_ID="$( cat /etc/debian_version )"
VERSION_CODENAME="$( grep '^VERSION_CODENAME=' /etc/os-release | awk -F'=' '{ print $2 }' )" VERSION_CODENAME="$( grep '^VERSION_CODENAME=' /etc/os-release | awk -F'=' '{ print $2 }' )"
DEBVER="${NAME} ${VERSION_ID} \"$(tc ${VERSION_CODENAME} )\"" DEBVER="${NAME} ${VERSION_ID} \"$(tc ${VERSION_CODENAME} )\""