Skip to content

Commit 0efdba2

Browse files
committed
Renamed Legal Notice to Imprint and undid some deploy.sh changes
1 parent 55ad107 commit 0efdba2

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

deploy.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ error() {
2020
exit "${2:-1}"
2121
}
2222

23+
openssh_opts='-t '
24+
2325
while [ "${1#-}" != "$1" ]; do
2426
for opt in $([ "${1#--}" = "$1" ] && echo "${1#-}" | grep -o . || echo "$1"); do
2527
case "$opt" in
@@ -87,9 +89,12 @@ EOF
8789
EOF
8890
fi
8991

90-
ssh "$openssh_opts" "$1" /bin/sh -c "$(cat <<'EOF'
9192
# Bootstrap comparison
93+
set +e
94+
ssh "$openssh_opts" "$1" /bin/sh <<'EOF'
9295
diff -qr "$HOME/emexlabs/bootstrap" "/var/www/emexlabs/bootstrap" >/dev/null 2>&1
96+
exit $?
97+
EOF
9398
bootstrap_diff=$?
9499
set -e
95100
if [ "$bootstrap_diff" -ne 0 ]; then
@@ -108,6 +113,9 @@ if [ "$bootstrap_diff" -ne 0 ]; then
108113
esac
109114
fi
110115

116+
ssh "$openssh_opts" "$1" /bin/sh <<'EOF'
117+
set -e
118+
111119
# Deployment
112120
trap '
113121
status=$?
@@ -135,4 +143,3 @@ mv "$HOME/emexlabs" "$HOME/$backup_path"
135143
trap - 0
136144
printf '\n\033[33;1mBackup successful!\033[0m\n'
137145
EOF
138-
)"

docusaurus.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ const config = {
178178
title: 'Team & More',
179179
items: [
180180
{
181-
label: 'Legal Notice',
182-
to: 'impressum',
181+
label: 'Imprint (Legal Notice)',
182+
to: 'imprint',
183183
},
184184
{
185185
label: 'Members',
@@ -313,7 +313,6 @@ const config = {
313313
if (['production', 'staging', 'testing'].includes(process.env.NODE_ENV)) {
314314
config.onBrokenLinks = 'throw';
315315
config.onBrokenAnchors = 'throw';
316-
config.onBrokenMarkdownLinks = 'throw';
317316
config.onDuplicateRoutes = 'throw';
318317
config.markdown.hooks.onBrokenMarkdownLinks = 'throw';
319318
config.markdown.hooks.onBrokenMarkdownImages = 'throw';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Legal Notice
1+
# Imprint (Legal Notice)
22

33
**emexLabs**
44

0 commit comments

Comments
 (0)