Skip to content

Commit

Permalink
scripts/compare only uses the basename in the dest
Browse files Browse the repository at this point in the history
  • Loading branch information
osteele committed Sep 2, 2017
1 parent bd441a3 commit 2786ee3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/compare
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash -eu

ddir=/tmp/$USER/gojekyll-compare
basename=$(basename $1)

./scripts/gojekyll build -s $1 -d $ddir/$1.go
(cd $1 && bundle exec jekyll build -d $ddir/$1.jekyll)
ksdiff $ddir/$1.jekyll $ddir/$1.go
./scripts/gojekyll build -s $1 -d $ddir/$basename.go
(cd $1 && bundle exec jekyll build -d $ddir/$basename.jekyll)
ksdiff $ddir/$basename.jekyll $ddir/$basename.go

0 comments on commit 2786ee3

Please sign in to comment.