Skip to content

Commit 8ac11b8

Browse files
committed
fix mistakes introduced w/ copilot
1 parent 2cca6a0 commit 8ac11b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/ipmConfigEpics

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,11 @@ fi
250250
# Attempt to read the :SUM PV and open a GUI if successful and exits if not. Uses wave8 or ipimb accordingly
251251
ipmGUI(){
252252
if caget "${BASE}":SUM > /dev/null 2>&1; then
253+
if [ ${#WAVE8V3} -gt 0 ]; then
254+
cmdName=$(caget -St "${BASE}":LAUNCH_EDM)
253255
# Validate cmdName: allow only safe characters (alphanum, underscore, dash, slash, period)
254256
if [[ "$cmdName" =~ ^[a-zA-Z0-9_./-]+$ ]]; then
257+
echo calling edm main screen from: "$cmdName"
255258
$cmdName
256259
else
257260
echo "Error: Unsafe command detected in LAUNCH_EDM PV: '$cmdName'. Aborting."

0 commit comments

Comments
 (0)