all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH installer] unconfigured: add missing [ ] around if clause
@ 2025-06-26  7:50 Christoph Heiss
  2025-06-26 11:40 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Heiss @ 2025-06-26  7:50 UTC (permalink / raw)
  To: pve-devel

"-n" would be treated like a command here otherwise.

Fixes: dc36013 ("unconfigured: rework stopping systemd-udevd slightly")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
 unconfigured.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unconfigured.sh b/unconfigured.sh
index ddab415..caa08c3 100755
--- a/unconfigured.sh
+++ b/unconfigured.sh
@@ -81,7 +81,7 @@ real_reboot() {
 
     # stop udev (release file handles)
     udevd_pid="$(pgrep systemd-udevd)"
-    if -n "$udevd_pid"; then
+    if [ -n "$udevd_pid" ]; then
         if kill -s TERM "$udevd_pid"; then
             if ! waitpid --exited --timeout 5 "$udevd_pid"; then
                 echo "failed to wait for udevd exit - $?"
-- 
2.49.0



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pve-devel] applied: [PATCH installer] unconfigured: add missing [ ] around if clause
  2025-06-26  7:50 [pve-devel] [PATCH installer] unconfigured: add missing [ ] around if clause Christoph Heiss
@ 2025-06-26 11:40 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2025-06-26 11:40 UTC (permalink / raw)
  To: pve-devel, Christoph Heiss

On Thu, 26 Jun 2025 09:50:46 +0200, Christoph Heiss wrote:
> "-n" would be treated like a command here otherwise.
> 
> 

Applied, thanks!

[1/1] unconfigured: add missing [ ] around if clause
      commit: 190a64e5dd300a9192dfe32d2f28b3589961652c


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-26 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-26  7:50 [pve-devel] [PATCH installer] unconfigured: add missing [ ] around if clause Christoph Heiss
2025-06-26 11:40 ` [pve-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal