From 0fe61b1db7c8304d43f6ec60a0abfc1684d77732 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Wed, 31 Jul 2024 22:06:33 -0400 Subject: [PATCH] Switch to strcmp --- workflow/apps/matlab/easy/EASYconsole.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/workflow/apps/matlab/easy/EASYconsole.m b/workflow/apps/matlab/easy/EASYconsole.m index b0114886..486b05a1 100644 --- a/workflow/apps/matlab/easy/EASYconsole.m +++ b/workflow/apps/matlab/easy/EASYconsole.m @@ -98,18 +98,18 @@ function varargout = EASYconsole(varargin) % User sanity check and warning if ~isempty(getenv('PROJECT_USER')) - if ~equal(getenv('PROJECT_USER'), userName) + if ~strcmp(getenv('PROJECT_USER'), userName) disp("WARNING: PROJECT_USER does not match the current namespace"); end end % Allow module to override hardcoded default EASY directory if ~isempty(getenv('EASY_DIR')) - EASY_DIR=fullfile(getenv('EASY_DIR')); - if ~strcmp(easyDir, EASY_DIR) % sanity check + ed=fullfile(getenv('EASY_DIR')); + if ~strcmp(easyDir, ed) % sanity check disp("WARNING: EASY_DIR does not match this script's hardcoded EASY location"); - disp("This is probably OK but if strange beahvior arises, we'll need to fix it in code"); - easyDir=EASY_DIR; + disp("This is probably OK but this pathway is not well-tested"); + easyDir=ed; end fprintf('Using EASY script directory: %s from environment variable EASY_DIR\n', easyDir); else