I'm trying to run a bash script on my RaspberryPi 3 model B+ with the following curl:
export GITHUB_TOKEN=<my_personal_access_token>
curl -sSL https://${GITHUB_TOKEN}@raw.githubusercontent.com/inmarsat-enterprise/fieldedge-core/main/install.sh | bash
I have also tried with doing a sudo apt install dos2unix from another thread, but this also failed with the command:
curl -sSL https://${GITHUB_TOKEN}@raw.githubusercontent.com/inmarsat-enterprise/fieldedge-core/main/install.sh | dos2unix |bash
The bash script "install.sh" contains user prompts, and it's spitting out of the script at the first one, but I have no idea how to resolve this issue?
Can anyone help?
Error I'm seeing on the Pi:
pi@fieldedge:~ $ curl -sSL https://${GITHUB_TOKEN}@raw.githubusercontent.com/inmarsat-enterprise/fieldedge-core/main/install.sh |dos2unix | bash
[FieldEdge INFO] Starting FieldEdge setup...
[FieldEdge INFO] Using GITHUB_TOKEN for secure file access.
[FieldEdge INFO] Updating host system. This may take several minutes...
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Continue script installation?
1) Yes
2) No
#? 1) Yes
2) No
#? #? #? #? 1) Yes
2) No
1) Yes
#? #?
pi@fieldedge:~ $
fieldedge-corerepository is private and therefore we are unable to see whatinstall.shis trying to do. You also have given almost no information about how it fails. Is there an error? What made you want to try dos2unix?1) Yesyour literal input? It's just looking for1FWIWcurl -sSL https://${GITHUB_TOKEN}@raw.githubusercontent.com/inmarsat-enterprise/fieldedge-core/main/install.sh > install.sh; bash ./install.sh.