Fix some os_version results contain /. Replacing with -.
This commit is contained in:
@@ -5,7 +5,7 @@ get_os_version() {
|
||||
local os_version=
|
||||
local utils_version=
|
||||
|
||||
os_version="$(bash "${getenv_dir}/distro.sh" | sed 's/ /_/g')"
|
||||
os_version="$(bash "${getenv_dir}/distro.sh" | sed 's/ /_/g; s/\//-/g')"
|
||||
|
||||
bash_version="$(bash --version | sed -n '/bash, [Vv]ersion/p' | sed 's/.*[Vv]ersion \([0-9.]\+\).*/\1/g')"
|
||||
|
||||
|
Reference in New Issue
Block a user