We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bcb51e commit d82e3afCopy full SHA for d82e3af
scripts/dev/setup_ibm_container_runtime.sh
@@ -26,10 +26,10 @@ cleanup_stale_state() {
26
27
# Kill orphaned root conmon processes (PPID=1 means orphaned)
28
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
+ ppid=$(ps -o ppid= -p "${pid}" 2>/dev/null | tr -d ' ')
+ if [[ "${ppid}" == "1" ]]; then
+ echo " Killing orphaned conmon ${pid}"
+ sudo kill -9 "${pid}" 2>/dev/null || true
33
fi
34
done
35
0 commit comments