Fix installing tideways on Alpine Linux (#907)

pull/908/head 2.2.7
Michele Locati 2024-04-09 16:19:23 +02:00 committed by GitHub
parent 6263a817ca
commit bc248f84c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -3929,7 +3929,7 @@ installRemoteModule() {
installRemoteModule_architecture=alpine-arm64 installRemoteModule_architecture=alpine-arm64
;; ;;
*) *)
installRemoteModule_architecture=alpine installRemoteModule_architecture=alpine-x86_64
;; ;;
esac esac
;; ;;
@ -3945,6 +3945,10 @@ installRemoteModule() {
;; ;;
esac esac
installRemoteModule_url="$(curl -sSLf -o - https://tideways.com/profiler/downloads | grep -Eo "\"[^\"]+/tideways-php-([0-9]+\.[0-9]+\.[0-9]+)-$installRemoteModule_architecture.tar.gz\"" | cut -d'"' -f2)" installRemoteModule_url="$(curl -sSLf -o - https://tideways.com/profiler/downloads | grep -Eo "\"[^\"]+/tideways-php-([0-9]+\.[0-9]+\.[0-9]+)-$installRemoteModule_architecture.tar.gz\"" | cut -d'"' -f2)"
if test -z "$installRemoteModule_url"; then
echo 'Failed to find the tideways tarball to be downloaded'
exit 1
fi
printf 'Downloading tideways from %s\n' "$installRemoteModule_url" printf 'Downloading tideways from %s\n' "$installRemoteModule_url"
installRemoteModule_src="$(getPackageSource $installRemoteModule_url)" installRemoteModule_src="$(getPackageSource $installRemoteModule_url)"
if test -d "$installRemoteModule_src/dist"; then if test -d "$installRemoteModule_src/dist"; then