Preserve multiline bash scripts in pipelines

This commit is contained in:
openhands 2025-10-12 16:59:55 +00:00
parent 3915e121bd
commit c2f1690b0d
3 changed files with 10 additions and 5 deletions

View file

@ -13,7 +13,8 @@ steps:
environment: environment:
CI: "true" CI: "true"
commands: commands:
- bash -lc ' - |
bash -lc '
set -euo pipefail set -euo pipefail
npm config set fund false npm config set fund false
npm config set audit false npm config set audit false
@ -43,7 +44,8 @@ steps:
FOUNDRY_DIR: /root/.foundry FOUNDRY_DIR: /root/.foundry
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
commands: commands:
- bash -lc ' - |
bash -lc '
set -euo pipefail set -euo pipefail
apt-get update apt-get update
apt-get install -y curl git build-essential pkg-config libssl-dev apt-get install -y curl git build-essential pkg-config libssl-dev

View file

@ -15,7 +15,8 @@ steps:
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HARB_ENV: BASE_SEPOLIA_LOCAL_FORK HARB_ENV: BASE_SEPOLIA_LOCAL_FORK
commands: commands:
- bash -lc ' - |
bash -lc '
set -euo pipefail set -euo pipefail
apt-get update apt-get update
apt-get install -y curl git build-essential pkg-config libssl-dev apt-get install -y curl git build-essential pkg-config libssl-dev
@ -48,7 +49,8 @@ steps:
BASE_SEPOLIA_RPC: BASE_SEPOLIA_RPC:
from_secret: base_sepolia_rpc from_secret: base_sepolia_rpc
commands: commands:
- bash -lc ' - |
bash -lc '
set -euo pipefail set -euo pipefail
apt-get update apt-get update
apt-get install -y curl git build-essential pkg-config libssl-dev apt-get install -y curl git build-essential pkg-config libssl-dev

View file

@ -13,7 +13,8 @@ steps:
FOUNDRY_DIR: /root/.foundry FOUNDRY_DIR: /root/.foundry
PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PATH: /root/.foundry/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
commands: commands:
- bash -lc ' - |
bash -lc '
set -euo pipefail set -euo pipefail
apt-get update apt-get update
apt-get install -y curl git build-essential bc apt-get install -y curl git build-essential bc