File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
- v1.2.1
1
+ v1.2.2
Original file line number Diff line number Diff line change 1
1
#! /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/>.
2
17
3
18
4
19
if [ " $( 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
19
34
exit 1
20
35
fi
21
36
PY_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
29
37
30
38
if ! systemctl --version > /dev/null 2>&1 ; then
31
39
echo -e " \e[31mERROR: Failed to test systemd\e[0m"
You can’t perform that action at this time.
0 commit comments