fauno / jekyll-pandoc-multiple-formats

Use pandoc on jekyll to generate posts in multiple formats. Development has moved to https://0xacab.org/edsl/jekyll-pandoc-multiple-formats
https://endefensadelsl.org
Other
89 stars 28 forks source link

Pushd / Popd not found #14

Closed Peaches491 closed 7 years ago

Peaches491 commented 10 years ago

On Ubuntu 14.10, fresh install with Jekyll 2.4.0, and the latest source from jekyll-pandoc-multiple-formats, I am presented the following error when running rake build

Configuration file: /home/peaches/jekyll_test/octopress/_config.yml
            Source: source
       Destination: public
      Generating...
Creating /home/peaches/jekyll_test/octopress/source/./tmp/pdf/blog/2014/10/30
pushd "source" >/dev/null; pandoc --smart --bibliography=ref.bib -o /home/peaches/jekyll_test/octopress/source/./tmp/pdf/-blog-2014-10-30-this-is-a-test.pdf --latex-engine=latex; popd >/dev/null
sh: 1: pushd: not found
sh: 1: popd: not found
Creating /home/peaches/jekyll_test/octopress/source/./tmp/epub/blog/2014/10/30
pushd "source" >/dev/null; pandoc --smart --bibliography=ref.bib -o /home/peaches/jekyll_test/octopress/source/./tmp/epub/-blog-2014-10-30-this-is-a-test.epub ; popd >/dev/null
sh: 1: pushd: not found
sh: 1: popd: not found
Creating /home/peaches/jekyll_test/octopress/source/./tmp/markdown/blog/2014/10/30
pushd "source" >/dev/null; pandoc --smart --bibliography=ref.bib -t markdown -o /home/peaches/jekyll_test/octopress/source/./tmp/markdown/-blog-2014-10-30-this-is-a-test.markdown ; popd >/dev/null
sh: 1: pushd: not found
sh: 1: popd: not found
sh: 1: pushd: not found
sh: 1: popd: not found
sh: 1: pushd: not found
sh: 1: popd: not found
                    done.
 Auto-regeneration: disabled. Use --watch to enable.

Any ideas?

chellem commented 10 years ago

I'm having the same issue.

fauno commented 10 years ago

mmm probably because your default shell is dash instead of bash? could you try removing the popd part and just using cd instead of pushd?

humburg commented 9 years ago

I had the same issue on Ubuntu 14.10. Replacing pushd with cd and omitting popd fixed it for me. The issue indeed seems to be that Ubuntu uses das as the default shell for scripts.

fauno commented 9 years ago

please try the latest version, it uses Dir::chdir instead (and it was sitting as a PR for a year now, woohoo!)