Merge branch 'buovjaga-master-patch-52439' into 'master'
Fix typo 'PIDMUM' See merge request troyengel/petrified!12
This commit is contained in:
commit
201200a04e
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ fi
|
|||
if (( ${USE_PID} == 1 )); then
|
||||
PIDNUM=$(cat "${PET_PID}" 2>/dev/null)
|
||||
# check if we have a number
|
||||
if [[ ${PIDMUM} =~ ^-?[0-9]+$ ]]; then
|
||||
if [[ ${PIDNUM} =~ ^-?[0-9]+$ ]]; then
|
||||
kill -0 ${PIDNUM}
|
||||
if (( $? == 0 )); then
|
||||
logmsg "Detected a running process ${PIDNUM}, exiting."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue