Skip to content

Commit

Permalink
Removed hutch_check function and placed with verify-hutch
Browse files Browse the repository at this point in the history
  • Loading branch information
spenc333 committed May 10, 2023
1 parent c712f8d commit 40fa5f6
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions scripts/camViewer
Original file line number Diff line number Diff line change
Expand Up @@ -264,26 +264,7 @@ if [ $# -ge 1 ]; then
exit 1
fi

VH="/reg/g/pcds/epics-dev/spencera/engineering_tools/scripts/verify-hutch"

hutch_check() {
hutch=$1
if [[ "$hutch" == "" ]]; then
hutch=$(get_info --gethutch)
if [[ "$hutch" == unknown_hutch ]]; then
if [[ $NUDGE -gt 0 ]]; then
echo 'To start/stop acquisition, you must be on the hutch specific machine'
exit 1
else
echo 'unknown hutch, specify using -H option'
usage
exit 1
fi
fi
fi
}

hutch_check $hutch
verify-hutch "$hutch"


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

0 comments on commit 40fa5f6

Please sign in to comment.