浏览代码

Caught an extra error

arianagiroux 1 月之前
父节点
当前提交
cbfc841fa4
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      init.sh

+ 4 - 0
init.sh

@@ -11,6 +11,10 @@ cp writefreely*.tar* bootstrap/
 
 pushd bootstrap
 docker build -t writefreely-bootstrap .
+if [ $? -ne 0 ]; then									# catch errors
+	exit 1
+fi
+
 docker run -it --rm -v ./data:/data writefreely-bootstrap
 if [ $? -ne 0 ]; then									# catch errors
 	exit 1