Commit 8957958c authored by Duncan Bayne's avatar Duncan Bayne

Add a safe shell command function

parent f07032ea
......@@ -119,3 +119,7 @@
(cd "~")
(term-send-raw-string "killall syncthing\n")
(term-send-raw-string "syncthing\n"))))
(defun utils:safe-shell-command (command)
(if (not (= 0 (shell-command command)))
(error (concat "shell-command failed: " command))))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment