Permalink
Browse files

Add some explanatory comments

  • Loading branch information...
1 parent 14de4be commit 57613e24582a51eda7438a9797338d1c160d10d8 @AD7six AD7six committed Apr 3, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 apache/sync.sh
View
@@ -1,5 +1,11 @@
#!/bin/bash
# Updates sites-available/default with the htaccess file from h5bp's main repo
+#
+# Download the raw .htaccess file from github
+# Indent the whole contents to the same depth as the placeholder comment it is going to be injected into
+# Splice the contents of the htaccess file inbetween the two comment markers in sites-available/default
+# Output to a temporary file, and then replace the original (because you can't do in-place updates with
+# awk)
cd /tmp
rm .htaccess

0 comments on commit 57613e2

Please sign in to comment.