11#! /bin/bash
22
33# 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"
55HERD_INSTALLED=0
66HERD_BIN_DIR=" $HOME /Library/Application Support/Herd/bin"
77HERD_CONFIG_DIR=" $HOME /Library/Application Support/Herd/config/php"
@@ -59,16 +59,16 @@ download_and_extract() {
5959 local version=$1
6060 local php_version=$2
6161 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"
6363 local zip_file=" spx-php-$php_version .zip"
6464 local so_file=" spx.so"
6565
6666 info " Downloading $zip_file ..."
6767
68- # curl -L -o "$target_dir/$zip_file" $file_url
68+ curl -L -o " $target_dir /$zip_file " $file_url
6969
7070 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
7272
7373 # Make sure the .so file exists
7474 if [[ ! -f " $target_dir /spx/$so_file " ]]; then
@@ -80,7 +80,7 @@ download_and_extract() {
8080 # Remove the quarantine attribute (might not be needed when the repo is public)
8181 # sudo xattr -r -d com.apple.quarantine "$target_dir/spx/$so_file"
8282
83- # rm "$target_dir/$zip_file"
83+ rm " $target_dir /$zip_file "
8484}
8585
8686info " Installing the SPX Profiler extension..."
0 commit comments