Skip to content
Snippets Groups Projects
Unverified Commit 16019861 authored by klang's avatar klang Committed by GitHub
Browse files

Merge pull request #23 from kmpeters/pidCompareFix

Compare pids as integers to avoid problems caused by leading whitespace
parents b753cb5a 86fa747c
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