Skip to content

Commit 0433e1b

Browse files
committed
shfmt kdump-udev-throttler
And add kdump-udev-throttler to the list for shfmt as well. Signed-off-by: Coiby Xu <[email protected]>
1 parent bedc451 commit 0433e1b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111
- run: dnf install shfmt -y
12-
- run: shfmt -s -d *.sh kdumpctl mk*dumprd tests/*/*/*.sh dracut/*/*.sh tools/*.sh
12+
- run: shfmt -s -d *.sh kdumpctl mk*dumprd kdump-udev-throttler tests/*/*/*.sh dracut/*/*.sh tools/*.sh
1313

1414
static-analysis:
1515
runs-on: ubuntu-latest

kdump-udev-throttler

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@
1515

1616
throttle_lock="/var/lock/kdump-udev-throttle"
1717

18-
exec 9>$throttle_lock
18+
exec 9> $throttle_lock
1919
if [ $? -ne 0 ]; then
20-
echo "Failed to create the lock file! Fallback to non-throttled kdump service restart"
21-
/bin/kdumpctl reload
22-
exit 1
20+
echo "Failed to create the lock file! Fallback to non-throttled kdump service restart"
21+
/bin/kdumpctl reload
22+
exit 1
2323
fi
2424

2525
flock -n 9
2626
if [ $? -ne 0 ]; then
27-
echo "Throttling kdump restart for concurrent udev event"
28-
exit 0
27+
echo "Throttling kdump restart for concurrent udev event"
28+
exit 0
2929
fi
3030

3131
# Wait for at least 1 second, at most 4 seconds for udev to settle

0 commit comments

Comments
 (0)