Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我写了一个这样的脚本,
#!/bin/sh HEXO=/Users/cinvro/nvm/v0.10.15/bin/hexo cd ~/Work/hexo/cinvro.com/ $HEXO generate
当我在终端中执行它时它可以工作,但是当我将它放入 Alfred2 工作流程时它不起作用。
hexo 这里是一个 node.js 程序。
这可能是~问题,只需替换为绝对路径:
~
#!/bin/sh HEXO=/Users/cinvro/nvm/v0.10.15/bin/hexo cd /Users/cinvro/Work/hexo/cinvro.com/ $HEXO generate