File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ source /reg/g/pcds/setup/pathmunge.sh
1717ldpathmunge /usr/local/lib
1818
1919
20- if [[ $# > 0 ]]; then
21- SEARCHOPT=' --onlyvisible --maxdepth 2 --limit 1 --all --desktop ' $1 ' --sync '
22- else
23- SEARCHOPT=' --onlyvisible --maxdepth 2 --limit 1 --all --sync '
20+ if [[ $# -gt 0 ]]; then
21+ SEARCHOPT=( --onlyvisible --maxdepth 2 --limit 1 --all --desktop " $1 " --sync )
22+ else
23+ SEARCHOPT=( --onlyvisible --maxdepth 2 --limit 1 --all --sync )
2424fi
25- proc=` xdotool search $ SEARCHOPT --name ' ProcStat' `
26- ami=` xdotool search $ SEARCHOPT --name ' DAQ Online Monitoring' `
27- env=` xdotool search $ SEARCHOPT --name ' Env' `
28- crwin=` xdotool search $ SEARCHOPT --name ' DAQ Control' `
29- echo $proc $ami $env $crwin
30- exit
25+ proc=$( xdotool search " ${ SEARCHOPT[@]} " --name ' ProcStat' )
26+ ami=$( xdotool search " ${ SEARCHOPT[@]} " --name ' DAQ Online Monitoring' )
27+ env=$( xdotool search " ${ SEARCHOPT[@]} " --name ' Env' )
28+ crwin=$( xdotool search " ${ SEARCHOPT[@]} " --name ' DAQ Control' )
29+ echo " $proc $ami $env $crwin "
30+ exit
You can’t perform that action at this time.
0 commit comments