File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2+ # A script to install python-openbmclapi (modified from go-openbmclapi)
3+ # Copyright (C) 2024 The co-author of go-openbmclapi
4+
5+ # This program is free software: you can redistribute it and/or modify
6+ # it under the terms of the GNU Affero General Public License as published
7+ # by the Free Software Foundation, either version 3 of the License, or
8+ # (at your option) any later version.
9+
10+ # This program is distributed in the hope that it will be useful,
11+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+ # GNU Affero General Public License for more details.
14+
15+ # You should have received a copy of the GNU Affero General Public License
16+ # along with this program. If not, see <https://www.gnu.org/licenses/>.
217
318
419if [ " $( id -u) " -ne 0 ]; then
@@ -19,13 +34,6 @@ if ! PY_VERSION=$(python -V 2>&1|awk '{print $2}') && $(python -V 2>&1|awk '{pri
1934 exit 1
2035fi
2136PY_VERSION=$( python -V 2>&1 | awk ' {print $2}' | awk -F ' .' ' {print $1}' ) .$( python -V 2>&1 | awk ' {print $2}' | awk -F ' .' ' {print $2}' )
22- # different=$(echo 2>&1 | awk "{print $PY_VERSION - $PY_MIRCO}")
23- # compare=$(expr "$different" \> 0)
24- # #printf $compare
25- # if [[ $compare -eq 0 ]] ; then
26- # echo -e "\e[31mERROR: Unsupported Python version; need >= 3.10\e[0m"
27- # exit 1
28- # fi
2937
3038if ! systemctl --version > /dev/null 2>&1 ; then
3139 echo -e " \e[31mERROR: Failed to test systemd\e[0m"
You can’t perform that action at this time.
0 commit comments