Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support spaces in input for pdf conversion

  • Loading branch information...
commit 3ae2e59b2fc8a4953afcce5dcb62669a5d078cef 1 parent f1892eb
@Seldaek authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/slippy-pdf.sh
View
4 bin/slippy-pdf.sh
@@ -36,12 +36,12 @@ if [ "" = "$pdftk" ]; then
fi
fi
-$phantom $bin/phantom-slippy-to-pdf.js $1 tmp-pdf/
+$phantom $bin/phantom-slippy-to-pdf.js "$1" tmp-pdf/
if [ "$?" != "0" ]
then
echo 'PhantomJS error, aborting.'
exit
fi
-$pdftk tmp-pdf/*.pdf cat output $2
+$pdftk tmp-pdf/*.pdf cat output "$2"
rm -r tmp-pdf/
Please sign in to comment.
Something went wrong with that request. Please try again.