Skip to content

Commit e65511e

Browse files
committed
init.sh: handle docker build errors
1 parent 2548836 commit e65511e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

init.sh

+6
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@ if [ ! -d ../lib ]; then
77
fi
88

99
docker build -t 3mdeb/armbian .
10+
11+
if [ $? -ne 0 ]; then
12+
echo "ERROR: Unable to build container"
13+
exit 1
14+
fi
15+
1016
cd ..
1117
docker run -v ${PWD}/lib:/root/lib -t -i 3mdeb/armbian

0 commit comments

Comments
 (0)