Onoff shim script problem


#1

When I ssh into RPi3 running Rasplex and try to run the script
curl https://get.pimoroni.com/onoffshim | bash
I get an error


RasPlex (official) Version: 1.6.2.123-e23a7eef
RasPlex git: 7580777a4bed0010d190ac3f04ebc686bf28a414
RasPlex:~ # curl https://get.pimoroni.com/cleanshutdown | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:05 --:–:-- 0ba sh: syntax error: unexpected "("
84 38496 84 32504 0 0 5437 0 0:00:07 0:00:05 0:00:02 7281
curl: (23) Failed writing body (264 != 16384)


or this

curl https://get.pimoroni.com/onoffshim | bash

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0bash: syntax error: unexpected "("
84 38496 84 32504 0 0 64051 0 --:–:-- --:–:-- --:–:-- 64237
curl: (23) Failed writing body (264 != 16384)


What do i do now?


Onoff shim software
#2

When I ssh into RPi3 running Rasplex and try to run the script
curl https://get.pimoroni.com/onoffshim | bash
I get and error
Unexpected character “)”

What do i do now?


#3

What do you see if you download the file and open it?

wget https://get.pimoroni.com/onoffshim
cat onoffshim

And what do you see if you run:

bash --version

#4

Ok
Wget does download the file

But
Bash --version
Gives no response, just a blank line.
Maybe Rasplex stripped something out?
Rasplex ver 1.6.2.123-e23a7eef

Regards

Basil