Skip to content

Commit

Permalink
Merge pull request #155 from vespos/camviewer_hutch_auto
Browse files Browse the repository at this point in the history
(re)add hutch autodiscovery
  • Loading branch information
vespos authored Jun 7, 2023
2 parents 338b286 + cadda96 commit b246801
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/camViewer
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,16 @@ if [ $# -ge 1 ]; then
exit 1
fi

verify-hutch "$hutch"
if ! verify-hutch "$hutch"; then
hutch=$(get_info --gethutch)
if [ "$hutch" == unknown_hutch ]; then
echo 'Unknown hutch, specify using -H option with a valid hutch name.'
usage
exit 1
fi
fi

echo "Launching camViewer for $hutch."

EXE="/reg/g/pcds/pyps/config/$hutch/camviewer/run_viewer.csh"
PVLIST="/reg/g/pcds/pyps/config/$hutch/camviewer.cfg"
Expand Down

0 comments on commit b246801

Please sign in to comment.