Skip to content

Commit b5d2a50

Browse files
Update insert_navbar.sh
1 parent 3cd4fe6 commit b5d2a50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

assets/scripts/insert_navbar.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ while [[ $# -gt 0 ]]; do
4343
done
4444

4545
# Determine if NAVBAR_SOURCE is a URL (starts with http or https) or a file path
46-
if [[ $NAVBAR_SOURCE == http* ]]; then
47-
NAVBAR_HTML=$(curl -s "$NAVBAR_SOURCE")
46+
if [[ $NAVBAR_SOURCE_URL == http* ]]; then
47+
NAVBAR_HTML=$(curl -s "$NAVBAR_SOURCE_URL")
4848
else
49-
NAVBAR_HTML=$(cat "$NAVBAR_SOURCE")
49+
NAVBAR_HTML=$(cat "$NAVBAR_SOURCE_URL")
5050
fi
5151

5252
# Check if the download was successful

0 commit comments

Comments
 (0)