リモートBashスクリプトfin GitHubの実行に失敗しました。

リモートBashスクリプトfin GitHubの実行に失敗しました。

次のカールを使用してRaspberryPi 3モデルB +でbashスクリプトを実行しようとしています。

export GITHUB_TOKEN=<my_personal_access_token>

curl -sSL https://${GITHUB_TOKEN}@raw.githubusercontent.com/inmarsat-enterprise/fieldedge-core/main/install.sh | bash 

また、別のスレッドで実行しようとしましたが、sudo apt install dos2unix次のコマンドでも失敗します。

curl -sSL https://${GITHUB_TOKEN}@raw.githubusercontent.com/inmarsat-enterprise/fieldedge-core/main/install.sh | dos2unix |bash 

Bashスクリプト "install.sh"にはユーザープロンプトが含​​まれており、最初のスクリプトで表示されますが、この問題を解決する方法がわかりません。

誰でも助けることができますか?

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:~ $

ベストアンサー1

明らかなエラーがないため、問題が何であるかはわかりませんが、簡単な回避策はパイプを使用する代わりにスクリプトをファイルにダウンロードしてからファイルを実行することです。

curl -sSL https://${GITHUB_TOKEN}@raw.githubusercontent.com/inmarsat-enterprise/fieldedge-core/main/install.sh > install.sh
bash ./install.sh

おすすめ記事