소스 검색

corrected if

Daniel Gibbs 8 년 전
부모
커밋
8f48818e01
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lgsm/functions/info_distro.sh

+ 1 - 1
lgsm/functions/info_distro.sh

@@ -21,7 +21,7 @@ if [ -f "/etc/os-release" ]; then
 	distroname=$(grep PRETTY_NAME /etc/os-release | sed 's/PRETTY_NAME=//g' | tr -d '="')
 	distroversion=$(grep VERSION_ID /etc/os-release | sed 's/VERSION_ID=//g' | sed 's/\"//g')
 	distroid=$(grep ID /etc/os-release | grep -v _ID | grep -v ID_ | sed 's/ID=//g')
-if [ -n "$(command -v lsb_release)" ]; then
+elif [ -n "$(command -v lsb_release)" ]; then
 	distroname="$(lsb_release -sd)"
 	distroversion="$(lsb_release -sr)"
 	distroid=$(lsb_release -sc)