Skip to content

Commit 0e95bae

Browse files
committed
zombie must stay dumb
Delegate to the user making sure that the zombienet CLI is installed.
1 parent ead419a commit 0e95bae

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

zombienet.sh

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
#!/bin/bash
22

3-
os=$(uname -s)
3+
# Check if the zombienet binary is available.
4+
if ! [ -x "$(command -v zombienet)" ]; then
5+
echo "\
6+
zombienet is not found in PATH. Install zombienet.
47
5-
if [ "$os" == "Darwin" ]; then
6-
./bin/zombienet-macos spawn -p native --dir zombienet testnet.toml
7-
8-
elif [ "$os" == "Linux" ]; then
9-
# @gabriele-0201 TODO: find a better way to do this
10-
source export_paths.sh
11-
./../zombienet-linux-x64 spawn -p native --dir zombienet testnet.toml
12-
else
13-
echo "Unsupported operating system"
14-
exit 1
8+
Available at https://github.com/paritytech/zombienet"
9+
exit 1
1510
fi
11+
12+
zombienet spawn -p native --dir zombienet testnet.toml

0 commit comments

Comments
 (0)