From f1ee3f6e2286ea46668608929d3543ae7e59ca91 Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Thu, 9 Oct 2025 16:51:36 +0800 Subject: [PATCH] shfmt kdump-udev-throttler Resolves: https://issues.redhat.com/browse/RHEL-104940 Conflict: .github/workflows/main.yml only exists in upstream commit 6fa302cb75c9f0d7a8a5499f91450d2d584baff1 Author: Coiby Xu Date: Wed Jul 23 10:14:21 2025 +0800 shfmt kdump-udev-throttler And add kdump-udev-throttler to the list for shfmt as well. Signed-off-by: Coiby Xu Signed-off-by: Coiby Xu --- kdump-udev-throttler | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kdump-udev-throttler b/kdump-udev-throttler index cd77a31..4b9896a 100755 --- a/kdump-udev-throttler +++ b/kdump-udev-throttler @@ -15,17 +15,17 @@ throttle_lock="/var/lock/kdump-udev-throttle" -exec 9>$throttle_lock +exec 9> $throttle_lock if [ $? -ne 0 ]; then - echo "Failed to create the lock file! Fallback to non-throttled kdump service restart" - /bin/kdumpctl reload - exit 1 + echo "Failed to create the lock file! Fallback to non-throttled kdump service restart" + /bin/kdumpctl reload + exit 1 fi flock -n 9 if [ $? -ne 0 ]; then - echo "Throttling kdump restart for concurrent udev event" - exit 0 + echo "Throttling kdump restart for concurrent udev event" + exit 0 fi # Wait for at least 1 second, at most 4 seconds for udev to settle