emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/detached 3feae45d28 04/22: Add success check in detache


From: ELPA Syncer
Subject: [elpa] externals/detached 3feae45d28 04/22: Add success check in detached.el
Date: Mon, 30 May 2022 10:57:29 -0400 (EDT)

branch: externals/detached
commit 3feae45d2838c20b2bfe4187fd79a69676936a61
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Add success check in detached.el
---
 detached.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/detached.el b/detached.el
index 3db7cfb0f3..fb9810b797 100644
--- a/detached.el
+++ b/detached.el
@@ -1178,8 +1178,9 @@ If SESSION is nonattachable fallback to a command that 
doesn't rely on tee."
          (command
           (if (eq 'terminal-data (detached--session-env-mode session))
               (shell-quote-argument
-               (format "TERM=eterm-color script --quiet --flush --return 
--command \"%s\" /dev/null"
-                       (detached--session-command session)))
+               (format "if %s; then echo Success; else echo \"Fail $?\"; fi"
+                       (format "TERM=eterm-color script --quiet --flush 
--return --command \"%s\" /dev/null"
+                               (detached--session-command session))))
             (shell-quote-argument (detached--session-command session)))))
     (format "%s %s %s; %s %s" begin-shell-group env command end-shell-group 
redirect)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]