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:
13
init.sh
13
init.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user