]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - make-files
Fix: Ignore conversion errors in `iconv`
[phdru.name/phdru.name.git] / make-files
index 5c736eaab2ee41b82d45b6d96c48727b2ebf3857..ca1ac094b48f83a66dd7b1cdac9e7600370f0a41 100755 (executable)
@@ -15,7 +15,7 @@ for tmpl in "$@"; do
    outfile="`basename \"$tmpl\" .tmpl`.html"
    echo "$tmpl => $dir/$outfile"
    cheetah fill --encoding=koi8-r --settings='encoding="koi8-r"' \
-      --nobackup --stdout "$tmpl" | iconv -f utf-8 -t koi8-r >"$dir/$outfile" || exit 1
+      --nobackup --stdout "$tmpl" | iconv -c -f utf-8 -t koi8-r >"$dir/$outfile" || exit 1
 done
 
 exec sitemap_gen.py --config=sitemaps/phdru.name-config.xml