Simplify code by removing a useless use of cat(1)
... detected by https://www.shellcheck.net/.
Fallout from 5b3d234c9e
This commit is contained in:
parent
6a5b41835e
commit
4d37209313
1 changed files with 1 additions and 1 deletions
2
toolbox
2
toolbox
|
@ -1015,7 +1015,7 @@ if [ -f /run/.containerenv ] 2>&3; then
|
|||
|
||||
pid_i=$$
|
||||
while [ "$pid_i" -gt 1 ] 2>&3; do
|
||||
cmdline=$(cat /proc/$pid_i/cmdline 2>&3 | sed "s/\x0/ /g" 2>&3)
|
||||
cmdline=$(sed "s/\x0/ /g" /proc/$pid_i/cmdline 2>&3)
|
||||
if has_prefix "$cmdline" "podman exec "; then
|
||||
podman_pid=$pid_i
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue