Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: don't use fileread() directly in / #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ COPY run.sh spm_BIDS_App.m pipeline_participant.m pipeline_group.m /opt/spm${SPM
RUN chmod +x /opt/spm${SPM_VERSION}/run.sh
RUN chmod +x /opt/spm${SPM_VERSION}/spm${SPM_VERSION}
RUN chmod +x /opt/spm${SPM_VERSION}/run_spm12.sh
COPY version /version
COPY version /opt/spm${SPM_VERSION}/version

ENTRYPOINT ["/opt/spm12/run.sh"]
#ENTRYPOINT ["/opt/spm12/spm12","script","/opt/spm12/spm_BIDS_App.m"]
2 changes: 1 addition & 1 deletion spm_BIDS_App.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
case {'-v','--version'}
fprintf('%s BIDS App, %s %s, version %s\n',...
spm('version'), upper(spm_check_version), version, ...
deblank(fileread('/version')));
deblank(fileread(fullfile(getenv('SPM_DIR'), 'version'))));
case {'-h','--help'}
fprintf([...
'Usage: bids/spm BIDS_DIR OUTPUT_DIR LEVEL [OPTIONS]\n',...
Expand Down