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

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

[elpa] externals/kiwix 5356b31 09/13: Fix docker pull command's if logic


From: Stefan Monnier
Subject: [elpa] externals/kiwix 5356b31 09/13: Fix docker pull command's if logic
Date: Mon, 4 Jan 2021 01:12:52 -0500 (EST)

branch: externals/kiwix
commit 5356b31e2b1aec9ad07ccc114bd95a93489bf1d8
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    Fix docker pull command's if logic
---
 kiwix.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kiwix.el b/kiwix.el
index 640750a..039e643 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -235,9 +235,9 @@ In order to fix user config setting port after kiwix 
already initialized."
 
 (defun kiwix-ping-server ()
   "Ping Kiwix server to set `kiwix-server-available?' global state variable."
-  (if kiwix-server-use-docker
-      (kiwix-docker-check)
-    (async-shell-command "docker pull kiwix/kiwix-serve"))
+  (when kiwix-server-use-docker
+    (unless (kiwix-docker-check)
+      (async-shell-command "docker pull kiwix/kiwix-serve")))
   (let ((inhibit-message t))
     (kiwix-server-url-update)
     (request kiwix-server-url



reply via email to

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