Skip to content

Commit 7be9e1d

Browse files
committed
2 parents 14119b7 + dfe1664 commit 7be9e1d

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.2.1
1+
v1.2.2

installer/installer.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
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

419
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
1934
exit 1
2035
fi
2136
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
2937

3038
if ! systemctl --version >/dev/null 2>&1 ; then
3139
echo -e "\e[31mERROR: Failed to test systemd\e[0m"

0 commit comments

Comments
 (0)