From 40fa5f60415a6ac01b3d334757c359225c300c39 Mon Sep 17 00:00:00 2001 From: Aalayah I Spencer Date: Tue, 9 May 2023 20:12:38 -0700 Subject: [PATCH] Removed hutch_check function and placed with verify-hutch --- scripts/camViewer | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/scripts/camViewer b/scripts/camViewer index 71ebc5e5..8f5c0e43 100755 --- a/scripts/camViewer +++ b/scripts/camViewer @@ -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"