Skip to content
Snippets Groups Projects
Commit 2d763f32 authored by Bob Mottram's avatar Bob Mottram
Browse files

Simplify

parent 1dc21134
No related branches found
No related tags found
No related merge requests found
......@@ -3172,7 +3172,7 @@ function cancel_app_installs {
if [ -f "$cancel_install_file" ]; then
#shellcheck disable=SC2009
p_str=$(ps aux | grep 'addremove-base' | grep -v grep)
if [[ "$p_str" == *'/bin/bash '* ]]; then
if [[ "$p_str" == *'bash'* ]]; then
kill_pid=$(echo "$p_str" | awk -F ' ' '{print $2}')
if [ "$kill_pid" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment