OnOff Shim - Script installation not successfully

The install of the script does not work.
I tried to install it on LibreElec (Raspberry Pi Zero WH - by using SSH)

The result is:
curl: (23) Failed writing body (264 != 16384)

–> identical to the the post:

But this topic was closed without any solution.

One issue is that curl script / installer is meant to be run on a system running Raspbian.
Run it on another OS and there is a good chance it will fail.

This "might’ work though with the on off shim.
The first overlay gpio-shutdown will have the Pi shutdown if GPIO 17 is grounded. That happens when you push the button on the on off shim.
The second gpio-poweroff overlay will pull GPIO 4 low and hold it low when the Pi does its very final shutdown. Thats the signal to the on off shim to cut power.
Add these two lines to your config.txt file, if it exists and see what happens.

dtoverlay=gpio-shutdown,gpio_pin=17,active_low=1,gpio_pull=up
dtoverlay=gpio-poweroff,gpiopin=4,active_low=1