File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 2828 . /etc/lsb-release
2929 export PLATFORM=linux
3030else
31+ # is it Debian
3132 if [ -f /etc/os-release ]
3233 then
3334 . /etc/os-release
3637 else
3738 # or not
3839 export DISTRIB_ID=$( $SYS_PYTHON -E -c " print(__import__('sysconfig').get_config_var('HOST_GNU_TYPE'))" )
40+ export PLATFORM=$( $SYS_PYTHON -E -c " print(__import__('sys').platform)" )
41+ echo no /etc/lsb-release found, please identify platform $PLATFORM : \" ${DISTRIB_ID} -${DISTRIB_RELEASE} \" or hit enter to continue
42+ read
3943 fi
40- export PLATFORM=$( $SYS_PYTHON -E -c " print(__import__('sys').platform)" )
41- echo no /etc/lsb-release found, please identify platform $PLATFORM : \" ${DISTRIB_ID} -${DISTRIB_RELEASE} \" or hit enter to continue
42- read
4344fi
4445
4546export DISTRIB=" ${DISTRIB_ID} -${DISTRIB_RELEASE} "
Original file line number Diff line number Diff line change 2828 . /etc/lsb-release
2929 export PLATFORM=linux
3030else
31+ # is it Debian
3132 if [ -f /etc/os-release ]
3233 then
3334 . /etc/os-release
3637 else
3738 # or not
3839 export DISTRIB_ID=$( $SYS_PYTHON -E -c " print(__import__('sysconfig').get_config_var('HOST_GNU_TYPE'))" )
40+ export PLATFORM=$( $SYS_PYTHON -E -c " print(__import__('sys').platform)" )
41+ echo no /etc/lsb-release found, please identify platform $PLATFORM : \" ${DISTRIB_ID} -${DISTRIB_RELEASE} \" or hit enter to continue
42+ read
3943 fi
40- export PLATFORM=$( $SYS_PYTHON -E -c " print(__import__('sys').platform)" )
41- echo no /etc/lsb-release found, please identify platform $PLATFORM : \" ${DISTRIB_ID} -${DISTRIB_RELEASE} \" or hit enter to continue
42- read
4344fi
4445
4546export DISTRIB=" ${DISTRIB_ID} -${DISTRIB_RELEASE} "
You can’t perform that action at this time.
0 commit comments