lib/gitdocs/runner.rb in gitdocs-0.1.4 vs lib/gitdocs/runner.rb in gitdocs-0.1.5
- old
+ new
@@ -132,10 +132,10 @@
# Run in shell, return both status and output
# @see #sh
def sh_with_code(cmd)
cmd << " 2>&1"
outbuf = ''
- outbuf = `cd #{@root} && #{cmd}`
+ outbuf = `cd "#{@root}" && #{cmd}`
[outbuf, $?]
end
end
-end
\ No newline at end of file
+end