Skip to content

Commit 1ebe89c

Browse files
committed
fix: don't fail if auth fails for nlr submodule
1 parent d6399e3 commit 1ebe89c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

apps/web/scripts/init-submodules.sh

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

44
if [ -n "$GITHUB_TOKEN" ]; then
55
echo "Using HTTPS with GitHub token"
@@ -33,10 +33,13 @@ elif [ -n "$GIT_SSH_KEY" ]; then
3333
ssh-keyscan github.com >> ~/.ssh/known_hosts
3434

3535
else
36-
echo "No authentication found!"
36+
echo "No authentication found! Skipping premium submodule initialization."
37+
echo "Note: Public newsletters will still work. Premium newsletters require authentication."
38+
exit 0
3739
fi
3840

39-
if git submodule update --init --recursive --force; then
41+
git submodule update --init --recursive --force
42+
if [ $? -eq 0 ]; then
4043
echo "Submodules initialized successfully"
4144
else
4245
echo "Warning: Submodule initialization failed, but continuing build..."

0 commit comments

Comments
 (0)