From 4d5ea7173008872a5309b35157a4883676ff689b Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Sat, 24 Jul 2010 13:51:43 +0200 Subject: the preproc should be a unix filter --- post-commit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'post-commit.sh') diff --git a/post-commit.sh b/post-commit.sh index 30d9315..0dc75c9 100644 --- a/post-commit.sh +++ b/post-commit.sh @@ -197,7 +197,7 @@ for f in $added_files $new $modified_files; do if [ "$preproc" != "" ]; then preproc_bak=`tempfile -p "fugitive" -d "$articles_dir"` mv "$f" "$preproc_bak" - $preproc "$preproc_bak" > "$f" + ($preproc) < "$preproc_bak" > "$f" fi art="${f#$articles_dir/}" echo -n "[fugitive] Generating $public_dir/$art.html from $f... " -- cgit v1.2.3