1
1
#! /bin/bash
2
2
3
3
# Variables
4
- REPO_URL=" https://api.github.com/repos/beyondcode/herd -spx-extension /releases/latest"
4
+ REPO_URL=" https://api.github.com/repos/beyondcode/php -spx/releases/latest"
5
5
HERD_INSTALLED=0
6
6
HERD_BIN_DIR=" $HOME /Library/Application Support/Herd/bin"
7
7
HERD_CONFIG_DIR=" $HOME /Library/Application Support/Herd/config/php"
@@ -59,16 +59,16 @@ download_and_extract() {
59
59
local version=$1
60
60
local php_version=$2
61
61
local target_dir=$HERD_CONFIG_DIR /$version
62
- local file_url=" https://github.com/beyondcode/herd -spx-extension /releases/download/$LATEST_RELEASE /spx-php-$php_version -nts-mac-$ARCH -clang.zip"
62
+ local file_url=" https://github.com/beyondcode/php -spx/releases/download/$LATEST_RELEASE /spx-php-$php_version -nts-mac-$ARCH -clang.zip"
63
63
local zip_file=" spx-php-$php_version .zip"
64
64
local so_file=" spx.so"
65
65
66
66
info " Downloading $zip_file ..."
67
67
68
- # curl -L -o "$target_dir/$zip_file" $file_url
68
+ curl -L -o " $target_dir /$zip_file " $file_url
69
69
70
70
info " Extracting $zip_file ..."
71
- # unzip -o "$target_dir/$zip_file" -d "$target_dir/spx" > /dev/null
71
+ unzip -o " $target_dir /$zip_file " -d " $target_dir /spx" > /dev/null
72
72
73
73
# Make sure the .so file exists
74
74
if [[ ! -f " $target_dir /spx/$so_file " ]]; then
@@ -80,7 +80,7 @@ download_and_extract() {
80
80
# Remove the quarantine attribute (might not be needed when the repo is public)
81
81
# sudo xattr -r -d com.apple.quarantine "$target_dir/spx/$so_file"
82
82
83
- # rm "$target_dir/$zip_file"
83
+ rm " $target_dir /$zip_file "
84
84
}
85
85
86
86
info " Installing the SPX Profiler extension..."
0 commit comments