Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-beck committed May 17, 2020
1 parent 594e79e commit 0a051ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions site/generate-htaccess.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ echo "# Version-specific rulesets generated by generate.sh"
n=$#
versions=( "$@" )
newestStable=
oldestStaple=
oldestStable=
oldestWeekly=

for (( i = n-1 ; i >= 0 ; i-- )) ; do
Expand Down Expand Up @@ -57,7 +57,7 @@ RewriteCond %2 =${minor}
RewriteCond %3 >=${minor}
RewriteRule ^(update\-center.*\.(json|html)+) /stable-${major}\.${minor}\.${patch}%{REQUEST_URI}? [NC,L,R=301]
EOF
oldestStaple="$version"
oldestStable="$version"
else
# This is a weekly version
# Split our version up into an array for rewriting
Expand All @@ -81,10 +81,10 @@ done
cat <<EOF
# First LTS update site (stable-$oldestStaple) gets all older LTS releases
# First LTS update site (stable-$oldestStable) gets all older LTS releases
RewriteCond %{QUERY_STRING} ^.*version=\d\.(\d+)\.\d+$ [NC]
RewriteRule ^(update\-center.*\.(json|html)+) /stable-${oldestStaple}%{REQUEST_URI}? [NC,L,R=301]
RewriteRule ^(update\-center.*\.(json|html)+) /stable-${oldestStable}%{REQUEST_URI}? [NC,L,R=301]
RewriteCond %{QUERY_STRING} ^.*version=\d\.(\d+)+$ [NC]
RewriteRule ^(update\-center.*\.(json|html)+) /${oldestWeekly}%{REQUEST_URI}? [NC,L,R=301]
Expand Down

0 comments on commit 0a051ff

Please sign in to comment.