We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6399e3 commit 1ebe89cCopy full SHA for 1ebe89c
1 file changed
apps/web/scripts/init-submodules.sh
@@ -1,5 +1,5 @@
1
#!/bin/bash
2
-set -e
+set +e
3
4
if [ -n "$GITHUB_TOKEN" ]; then
5
echo "Using HTTPS with GitHub token"
@@ -33,10 +33,13 @@ elif [ -n "$GIT_SSH_KEY" ]; then
33
ssh-keyscan github.com >> ~/.ssh/known_hosts
34
35
else
36
- echo "No authentication found!"
+ echo "No authentication found! Skipping premium submodule initialization."
37
+ echo "Note: Public newsletters will still work. Premium newsletters require authentication."
38
+ exit 0
39
fi
40
-if git submodule update --init --recursive --force; then
41
+git submodule update --init --recursive --force
42
+if [ $? -eq 0 ]; then
43
echo "Submodules initialized successfully"
44
45
echo "Warning: Submodule initialization failed, but continuing build..."
0 commit comments