Update readme, remove wget need

Do no longer use wget to download the file, use curl.

Check that curl and jq exists.

Update ReadMe file
This commit is contained in:
Clemens Schwaighofer
2024-08-28 12:01:16 +09:00
parent 59f2394b5c
commit 11c1daf4a1
4 changed files with 37 additions and 8 deletions

13
init.sh
View File

@@ -1,11 +1,20 @@
#!/usr/bin/env bash
# check needed binaries
if [ -z "$(command -v curl)" ]; then
echo "Missing curl application, aborting";
exit;
fi;
if [ -z "$(command -v jq)" ]; then
echo "Missing jq application, aborting";
exit;
fi;
CPU_ARCH=""
# get the architecture
_cpu_arch=$(uname -m);
# weg get like x86_64 or x86_32 (NO), aarch64, etc
# we ONLY allow x86_64 or aarch64
# possible add: arm64
# we ONLY allow x86_64 or aarch64/arm64
if [ "${_cpu_arch}" = "x86_64" ]; then
CPU_ARCH="amd64";
elif [ "${_cpu_arch}" = "aarch64" ] || [ "${_cpu_arch}" = "arm64" ]; then