We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd4fe6 commit b5d2a50Copy full SHA for b5d2a50
assets/scripts/insert_navbar.sh
@@ -43,10 +43,10 @@ while [[ $# -gt 0 ]]; do
43
done
44
45
# 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")
+if [[ $NAVBAR_SOURCE_URL == http* ]]; then
+ NAVBAR_HTML=$(curl -s "$NAVBAR_SOURCE_URL")
48
else
49
- NAVBAR_HTML=$(cat "$NAVBAR_SOURCE")
+ NAVBAR_HTML=$(cat "$NAVBAR_SOURCE_URL")
50
fi
51
52
# Check if the download was successful
0 commit comments