Skip to content

Commit 008a64b

Browse files
authored
Set default command in entrypoint file (#5)
1 parent cf73888 commit 008a64b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

entrypoint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -xeo pipefail
2+
set -eo pipefail
33

44
# Set default network to devnet if $2 is empty or not defined
55
if [ -z "$2" ]; then
@@ -24,4 +24,8 @@ if [ "$NETWORK" == "devnet" ]; then
2424
fi
2525

2626
# Run the provided commands
27-
eval "$1"
27+
if [ -z "$1" ]; then
28+
anchor build
29+
else
30+
eval "$1"
31+
fi

0 commit comments

Comments
 (0)