bugfix: reading /etc/os-release fixed

If the LSB tools are not installed on a Linux system, the OS is
determined by sourcing /etc/os-release. In this file a variable
VERSION is defined which is already defined and set read-only in
modulecmd.
This commit is contained in:
2025-10-29 16:12:30 +01:00
parent 13cce0de71
commit d217939d8a
2 changed files with 2 additions and 3 deletions
-2
View File
@@ -2,8 +2,6 @@
#
# shellcheck -x -e SC1008,SC2239,SC2317,SC2034,SC2128,SC2059,SC2178
#
declare -r VERSION='@PMODULES_VERSION@'
unset CDPATH # unset CDPATH, otherwise 'cd' prints the directoy!
unset IFS # use default IFS