"-n" would be treated like a command here otherwise. Fixes: dc36013 ("unconfigured: rework stopping systemd-udevd slightly") Signed-off-by: Christoph Heiss <c.he...@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