Skip to content
This repository has been archived by the owner on Mar 5, 2018. It is now read-only.

Commit

Permalink
Create .htaccess with mimetype and charset
Browse files Browse the repository at this point in the history
Fixes encoding problems in Google Calendar.
  • Loading branch information
Tim Weber committed Feb 26, 2014
1 parent 55f4b68 commit 959fb0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bulk.sh
Expand Up @@ -25,6 +25,7 @@ fi
mkdir -p "$outdir" mkdir -p "$outdir"


: >"$mapping" : >"$mapping"
echo "AddType 'text/calendar; charset=UTF-8' ics" >"$outdir/.htaccess"


echo 'SELECT DISTINCT username FROM days;' | sqlite3 "$dbfile" | while read -r employee; do echo 'SELECT DISTINCT username FROM days;' | sqlite3 "$dbfile" | while read -r employee; do
outfile="$(echo "$secret$employee" | sha1sum | cut -b 1-40).ics" outfile="$(echo "$secret$employee" | sha1sum | cut -b 1-40).ics"
Expand Down

0 comments on commit 959fb0d

Please sign in to comment.