Skip to content

Commit 515238f

Browse files
waltsimsCopilot
andauthored
Find executable file
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f98e16f commit 515238f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test: $(COLLECTED_VALUES_DIR)
3939
# Includes fallback behavior if MATLAB is not available
4040
$(COLLECTED_VALUES_DIR):
4141
@echo "Running MATLAB script to collect values..."; \
42-
if [ -f "$(MATLAB)" ]; then \
42+
if [ -x "$(MATLAB)" ]; then \
4343
$(MATLAB) -batch "run('$(MATLAB_SCRIPT)');"; \
4444
else \
4545
echo "MATLAB not found. Skipping MATLAB data collection."; \

0 commit comments

Comments
 (0)