Skip to content

Commit 1efcf58

Browse files
pepyakinrphmeier
authored andcommitted
zombienet: detect required binaries
Printing suggestions on how to fix those.
1 parent e4c8818 commit 1efcf58

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

zombienet.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,19 @@ Available at https://github.com/paritytech/zombienet"
99
exit 1
1010
fi
1111

12+
if ! [ -x "$(command -v polkadot)" ]; then
13+
echo "\
14+
'polkadot' is not found in PATH. Install polkadot.
15+
16+
To obtain, refer to https://github.com/paritytech/polkadot-sdk/tree/master/polkadot#polkadot"
17+
exit 1
18+
fi
19+
20+
if ! [ -x "$(command -v sugondat-node)" ]; then
21+
echo "\
22+
'sugondat-node' is not found in PATH. cd to 'sugondat/chain' and run 'cargo build --release'
23+
and add the result into your PATH."
24+
exit 1
25+
fi
26+
1227
zombienet spawn -p native --dir zombienet testnet.toml

0 commit comments

Comments
 (0)