-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathdevnet-log.sh
executable file
·42 lines (38 loc) · 1.11 KB
/
devnet-log.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
# Default values
if [ -z "${ARTIFACTS_DIR}" ]; then
ARTIFACTS_DIR="artifacts"
fi
if [ -z "${LINES}" ]; then
LINES="10"
fi
if [ -z "${NODES}" ]; then
NODES="*"
fi
# Change directory
cd ${ARTIFACTS_DIR}
# Logs devnet
echo "====================================================================="
echo " Logs Mithril/Cardano devnet"
echo "====================================================================="
echo
if [ "${NODES}" = "*" ]; then
echo "====================================================================="
echo "=== Mithril Network"
echo "====================================================================="
echo
fi
if [ "${NODES}" = "mithril" ] || [ "${NODES}" = "*" ]; then
LINES=${LINES} ./log-mithril.sh
echo
fi
if [ "${NODES}" = "*" ]; then
echo "====================================================================="
echo "=== Cardano Network"
echo "====================================================================="
echo
fi
if [ "${NODES}" = "cardano" ] || [ "${NODES}" = "*" ]; then
LINES=${LINES} ./log-cardano.sh
echo
fi