diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-02-27 14:58:34 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-02-27 14:58:34 -0700 |
commit | 60d708c289a4ad547bc58e6cf33c2b8bb53b2da4 (patch) | |
tree | 5a0cb61faeac844e9fa0e7b7ee7ce383a7f54b8a /src/connection/shell-wrap.lisp | |
parent | 15ef751ac3f587a28baca862bd05305646bacb3b (diff) | |
download | consfigurator-60d708c289a4ad547bc58e6cf33c2b8bb53b2da4.tar.gz |
use ZEROP
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection/shell-wrap.lisp')
-rw-r--r-- | src/connection/shell-wrap.lisp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection/shell-wrap.lisp b/src/connection/shell-wrap.lisp index 9619cc1..5f94302 100644 --- a/src/connection/shell-wrap.lisp +++ b/src/connection/shell-wrap.lisp @@ -29,7 +29,7 @@ (multiple-value-bind (out exit) (let ((path (escape-sh-token path))) (connection-run c #?"test -r ${path} && cat ${path}" nil)) - (if (= 0 exit) out (error "File ~S not readable" path)))) + (if (zerop exit) out (error "File ~S not readable" path)))) (defmethod connection-writefile ((conn shell-wrap-connection) path |