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 28
28
. /etc/lsb-release
29
29
export PLATFORM=linux
30
30
else
31
+ # is it Debian
31
32
if [ -f /etc/os-release ]
32
33
then
33
34
. /etc/os-release
36
37
else
37
38
# or not
38
39
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
39
43
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
43
44
fi
44
45
45
46
export DISTRIB=" ${DISTRIB_ID} -${DISTRIB_RELEASE} "
Original file line number Diff line number Diff line change 28
28
. /etc/lsb-release
29
29
export PLATFORM=linux
30
30
else
31
+ # is it Debian
31
32
if [ -f /etc/os-release ]
32
33
then
33
34
. /etc/os-release
36
37
else
37
38
# or not
38
39
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
39
43
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
43
44
fi
44
45
45
46
export DISTRIB=" ${DISTRIB_ID} -${DISTRIB_RELEASE} "
You can’t perform that action at this time.
0 commit comments