Skip to content
Snippets Groups Projects
Commit 86fa747c authored by kpetersn's avatar kpetersn
Browse files

Compare pids as integers to avoid problems caused by leading whitespace

parent b753cb5a
No related branches found
No related tags found
No related merge requests found
......@@ -107,12 +107,12 @@ checkpid() {
for s_pid in ${S_PIDS} ; do
#!${ECHO} ${s_pid}
if [ "${s_pid}" = "${P_PID}" ] ; then
if [[ ${s_pid} -eq ${P_PID} ]] ; then
SCREEN_PID=${s_pid}
break
fi
if [ "${s_pid}" = "${GP_PID}" ] ; then
if [[ ${s_pid} -eq ${GP_PID} ]] ; then
SCREEN_PID=${s_pid}
break
fi
......
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