mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 18:59:39 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user