summaryrefslogtreecommitdiff
path: root/utils/lib_go.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-08-20 16:43:49 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-08-20 20:20:50 +0200
commit5c6b126d7f2bbd12c6944247068b49ec3a9b7dee (patch)
treef4163b69cb92deb3b753ce2c132f75fb5cef2157 /utils/lib_go.sh
parent799d72e3fd74fd0967a79f07bbf541ce7f0f3e84 (diff)
downloadsearxng-5c6b126d7f2bbd12c6944247068b49ec3a9b7dee.tar.gz
searxng-5c6b126d7f2bbd12c6944247068b49ec3a9b7dee.zip
[fix] debian/ubuntu python-is-python3
Closes: https://github.com/searxng/searxng/issues/3235 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib_go.sh')
-rwxr-xr-xutils/lib_go.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/lib_go.sh b/utils/lib_go.sh
index 462bbbba0..0b58fad61 100755
--- a/utils/lib_go.sh
+++ b/utils/lib_go.sh
@@ -41,7 +41,7 @@ EOF
}
go.ls(){
- python3 <<EOF
+ python <<EOF
import sys, json, requests
resp = requests.get("${GO_DL_URL}/?mode=json&include=all")
for ver in json.loads(resp.text):
@@ -67,7 +67,7 @@ go.ver_info(){
# os: [darwin|freebsd|linux|windows]
# arch: [amd64|arm64|386|armv6l|ppc64le|s390x]
- python3 - "$@" <<EOF
+ python - "$@" <<EOF
import sys, json, requests
resp = requests.get("${GO_DL_URL}/?mode=json&include=all")
for ver in json.loads(resp.text):