From 2786ee38ce6249a3cbd8d6f153ad6f79ef3e3d67 Mon Sep 17 00:00:00 2001 From: Oliver Steele Date: Sat, 2 Sep 2017 12:09:58 -0400 Subject: [PATCH] scripts/compare only uses the basename in the dest --- scripts/compare | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/compare b/scripts/compare index 043cb86..46aec7f 100755 --- a/scripts/compare +++ b/scripts/compare @@ -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