diff options
author | mail_redacted_for_web | 2025-03-15 20:29:45 +0100 |
---|---|---|
committer | mail_redacted_for_web | 2025-03-15 20:29:45 +0100 |
commit | 1f1f50fc67db2f4a32ca954dbc6798f97b214102 (patch) | |
tree | 1467d6f3a72ff3178aef25c5e86e7a6b9af14519 | |
parent | 161e84c57cea54d416ded8cc893be6d654702141 (diff) | |
download | dotfiles-1f1f50fc67db2f4a32ca954dbc6798f97b214102.tar.bz2 |
Fix: Remove quotation marks from OS name string (RHEL derivatives)v1.2.4
-rw-r--r-- | .bash/vars.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.bash/vars.bash b/.bash/vars.bash index f528479..b9b1b19 100644 --- a/.bash/vars.bash +++ b/.bash/vars.bash @@ -27,7 +27,7 @@ for pa in "/usr/local/bin" "${HOME}/bin" "${HOME}/.local/bin" "${HOME}/go/bin";d done # $OSNAME if [ -r "/etc/os-release" ];then - OSNAME="$(grep ^ID /etc/os-release|awk -F= '{print $NF}'|head -n1)" + OSNAME="$(grep ^ID /etc/os-release|awk -F= '{print $NF}'|head -n1|sed 's/"//g')" elif [ "$(uname -s)" == 'SunOS' ]; then OSNAME="sunos" elif [ -r "/etc/redhat-release" ];then grep -P "^Red[\ ]?[Hh]at" /etc/redhat-release >/dev/null 2>&1 && OSNAME="redhat" |