Move popd out of the maven check when building mock-couchbase
@@ -10,9 +10,8 @@ if [ -d mock-couchbase/.git ];
git -C mock-couchbase checkout b929a9f99a31a233c43bd94b6a696ad966206e02
fi
pushd mock-couchbase
-if mvn package -Dmaven.test.skip=true; then
- popd
-else
+if ! mvn package -Dmaven.test.skip=true; then
echo "Error building mock-couchbase"
exit 1
fi
+popd
