Skip to content

Commit

Permalink
fix: use shell instead of bash
Browse files Browse the repository at this point in the history
Signed-off-by: Lohachov Mykhailo <[email protected]>
  • Loading branch information
aoyako committed Nov 13, 2024
1 parent ab3054a commit e3edc40
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions crates/iroha_swarm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ mod tests {
- ./client.toml:/config/client.toml:ro
init: true
command: |-
/bin/bash -c "
/bin/sh -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
WASM_DIR_RELATIVE_PATH=$(jq -r '.wasm_dir' /config/genesis.json) && \\
Expand Down Expand Up @@ -258,7 +258,7 @@ mod tests {
- ./client.toml:/config/client.toml:ro
init: true
command: |-
/bin/bash -c "
/bin/sh -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
WASM_DIR_RELATIVE_PATH=$(jq -r '.wasm_dir' /config/genesis.json) && \\
Expand Down Expand Up @@ -315,7 +315,7 @@ mod tests {
- ./client.toml:/config/client.toml:ro
init: true
command: |-
/bin/bash -c "
/bin/sh -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
WASM_DIR_RELATIVE_PATH=$(jq -r '.wasm_dir' /config/genesis.json) && \\
Expand Down Expand Up @@ -436,7 +436,7 @@ mod tests {
retries: 30
start_period: 4s
command: |-
/bin/bash -c "
/bin/sh -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
WASM_DIR_RELATIVE_PATH=$(jq -r '.wasm_dir' /config/genesis.json) && \\
Expand Down Expand Up @@ -496,7 +496,7 @@ mod tests {
retries: 30
start_period: 4s
command: |-
/bin/bash -c "
/bin/sh -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
WASM_DIR_RELATIVE_PATH=$(jq -r '.wasm_dir' /config/genesis.json) && \\
Expand Down
2 changes: 1 addition & 1 deletion crates/iroha_swarm/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ where
#[derive(Debug)]
struct SignAndSubmitGenesis;

const SIGN_AND_SUBMIT_GENESIS: &str = r#"/bin/bash -c "
const SIGN_AND_SUBMIT_GENESIS: &str = r#"/bin/sh -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
WASM_DIR_RELATIVE_PATH=$(jq -r '.wasm_dir' /config/genesis.json) && \\
Expand Down
2 changes: 1 addition & 1 deletion defaults/docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
retries: 30
start_period: 4s
command: |-
/bin/bash -c "
/bin/sh -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
WASM_DIR_RELATIVE_PATH=$(jq -r '.wasm_dir' /config/genesis.json) && \\
Expand Down
2 changes: 1 addition & 1 deletion defaults/docker-compose.single.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
retries: 30
start_period: 4s
command: |-
/bin/bash -c "
/bin/sh -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
WASM_DIR_RELATIVE_PATH=$(jq -r '.wasm_dir' /config/genesis.json) && \\
Expand Down
2 changes: 1 addition & 1 deletion defaults/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
retries: 30
start_period: 4s
command: |-
/bin/bash -c "
/bin/sh -c "
EXECUTOR_RELATIVE_PATH=$(jq -r '.executor' /config/genesis.json) && \\
EXECUTOR_ABSOLUTE_PATH=$(realpath \"/config/$$EXECUTOR_RELATIVE_PATH\") && \\
WASM_DIR_RELATIVE_PATH=$(jq -r '.wasm_dir' /config/genesis.json) && \\
Expand Down

0 comments on commit e3edc40

Please sign in to comment.