This commit is contained in:
0xOzgur 2024-10-15 21:21:43 +03:00
parent 19bbde5494
commit b026ae6b0b
2 changed files with 38 additions and 1 deletions

View File

@ -178,6 +178,26 @@ elif [ "$ARCH" = "aarch64" ]; then
fi
fi
get_os_arch() {
local os=$(uname -s | tr '[:upper:]' '[:lower:]')
local arch=$(uname -m)
case "$os" in
linux|darwin) ;;
*) echo "Unsupported operating system: $os" >&2; return 1 ;;
esac
case "$arch" in
x86_64|amd64) arch="amd64" ;;
arm64|aarch64) arch="arm64" ;;
*) echo "Unsupported architecture: $arch" >&2; return 1 ;;
esac
echo "${os}-${arch}"
}
# Step 4:Download qClient
echo "⏳Downloading qClient"
sleep 1 # Add a 1-second delay

View File

@ -134,6 +134,24 @@ elif [ "$ARCH" = "aarch64" ]; then
fi
fi
get_os_arch() {
local os=$(uname -s | tr '[:upper:]' '[:lower:]')
local arch=$(uname -m)
case "$os" in
linux|darwin) ;;
*) echo "Unsupported operating system: $os" >&2; return 1 ;;
esac
case "$arch" in
x86_64|amd64) arch="amd64" ;;
arm64|aarch64) arch="arm64" ;;
*) echo "Unsupported architecture: $arch" >&2; return 1 ;;
esac
echo "${os}-${arch}"
}
# Step 4:Update qClient
# Get the current OS and architecture
@ -164,7 +182,6 @@ for file in $FILES; do
echo "------------------------"
done
//
chmod +x qclient*
echo "✅ qClient binary downloaded and configured successfully."