pull/836/head
nivesh 2026-01-21 04:56:21 -05:00 committed by GitHub
parent 340ba32ef0
commit 0c147d745e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -42,7 +42,7 @@ install_gost() {
armv7*) armv7*)
cpu_arch="armv7" cpu_arch="armv7"
;; ;;
aarch64) aarch64|arm64)
cpu_arch="arm64" cpu_arch="arm64"
;; ;;
i686) i686)
@ -78,11 +78,14 @@ install_gost() {
chmod +x gost chmod +x gost
mv gost /usr/local/bin/gost mv gost /usr/local/bin/gost
# Remove binary from macOS quarantine when installing for first time
[[ "$os" == "darwin" ]] && { xattr -d com.apple.quarantine /usr/local/bin/gost 2>&-; }
echo "gost installation completed!" echo "gost installation completed!"
} }
# Retrieve available versions from GitHub API # Retrieve available versions from GitHub API
versions=$(curl -s "$base_url" | grep -oP 'tag_name": "\K[^"]+') versions=$(curl -s "$base_url" | awk -F'"' '/"tag_name":/ {print $4}')
# Check if --install option provided # Check if --install option provided
if [[ "$1" == "--install" ]]; then if [[ "$1" == "--install" ]]; then