Merge branch 'master' of git@github.com:jsntn/emacs.d.git
This commit is contained in:
commit
2f8913ef99
1 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ to HTML files."
|
||||||
(erase-buffer)
|
(erase-buffer)
|
||||||
(insert (mapconcat 'identity lines "\n")))
|
(insert (mapconcat 'identity lines "\n")))
|
||||||
(if sudo
|
(if sudo
|
||||||
(let ((sudo-command (concat "sudo tee " (shell-quote-argument file)))
|
(let* ((sudo-command (concat "sudo tee " (shell-quote-argument file)))
|
||||||
(cmd (concat "echo " (shell-quote-argument (buffer-string)) " | " sudo-command)))
|
(cmd (concat "echo " (shell-quote-argument (buffer-string)) " | " sudo-command)))
|
||||||
(shell-command cmd))
|
(shell-command cmd))
|
||||||
(write-region (point-min) (point-max) file))))
|
(write-region (point-min) (point-max) file))))
|
||||||
|
|
Loading…
Reference in a new issue