Skip to content

Commit d82e3af

Browse files
committed
linter
1 parent 8bcb51e commit d82e3af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/dev/setup_ibm_container_runtime.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ cleanup_stale_state() {
2626

2727
# Kill orphaned root conmon processes (PPID=1 means orphaned)
2828
for pid in $(sudo pgrep conmon 2>/dev/null); do
29-
ppid=$(ps -o ppid= -p "$pid" 2>/dev/null | tr -d ' ')
30-
if [[ "$ppid" == "1" ]]; then
31-
echo " Killing orphaned conmon $pid"
32-
sudo kill -9 "$pid" 2>/dev/null || true
29+
ppid=$(ps -o ppid= -p "${pid}" 2>/dev/null | tr -d ' ')
30+
if [[ "${ppid}" == "1" ]]; then
31+
echo " Killing orphaned conmon ${pid}"
32+
sudo kill -9 "${pid}" 2>/dev/null || true
3333
fi
3434
done
3535

0 commit comments

Comments
 (0)