Skip to content

Commit bc248f8

Browse files
authored
Fix installing tideways on Alpine Linux (#907)
1 parent 6263a81 commit bc248f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

install-php-extensions

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3929,7 +3929,7 @@ installRemoteModule() {
39293929
installRemoteModule_architecture=alpine-arm64
39303930
;;
39313931
*)
3932-
installRemoteModule_architecture=alpine
3932+
installRemoteModule_architecture=alpine-x86_64
39333933
;;
39343934
esac
39353935
;;
@@ -3945,6 +3945,10 @@ installRemoteModule() {
39453945
;;
39463946
esac
39473947
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)"
3948+
if test -z "$installRemoteModule_url"; then
3949+
echo 'Failed to find the tideways tarball to be downloaded'
3950+
exit 1
3951+
fi
39483952
printf 'Downloading tideways from %s\n' "$installRemoteModule_url"
39493953
installRemoteModule_src="$(getPackageSource $installRemoteModule_url)"
39503954
if test -d "$installRemoteModule_src/dist"; then

0 commit comments

Comments
 (0)