File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,16 +279,20 @@ function check_pkg_deb_installed() {
279279}
280280
281281function check_build_deps() {
282- DIST=$( lsb_release -is)
283- info " Check build dependencies for $DIST "
284- case $DIST in
285- Debian|Ubuntu|LinuxMint)
286- check_pkg_deb_installed " build-essential zlib1g-dev cython"
287- ;;
288- * )
289- debug " Avoid check build dependencies, unknow platform $DIST "
290- ;;
291- esac
282+ local dist=" "
283+ if which lsb_release -is >& /dev/null
284+ then
285+ dist=$( lsb_release -is)
286+ fi
287+ info " Check build dependencies for $dist "
288+ case $dist in
289+ Debian|Ubuntu|LinuxMint)
290+ check_pkg_deb_installed " build-essential zlib1g-dev cython"
291+ ;;
292+ * )
293+ debug " Avoid check build dependencies, unknow platform $dist "
294+ ;;
295+ esac
292296}
293297
294298function run_prepare() {
You can’t perform that action at this time.
0 commit comments