Since my config file is not in the current directory, or say script directory, the tar function cannot found my config file based on the line 74.
73 mkdir -p ${home_directory}/results/config/
74 tar czf ${home_directory}/results/config/${study_name}_config.tar -C ${scripts_directory}/ ./${config_file} ./resources/parameters
75 echo "Successfully created config archive"
How can the bug be reproduced?
Yes.
R version
4.4.0 (April, 2024)
Python version
None
Relevant log output
[sww208@login02 godmc_phase2] (main)$ ./check_upload.sh -c /lustre/home/sww208/GoDMC/DataSetGoDMC/scz_ab_eur/scz_ab_eurconfig 01 upload
Already up to date.
-----------------------------------------------
Using config located at: /lustre/home/sww208/GoDMC/DataSetGoDMC/scz_ab_eur/scz_ab_eurconfig
-----------------------------------------------
Checking log files for 01
Version required: 1.0.0
Version used: 1.0.0
Correct script version
01-check_data.sh completed successfully.
Checking results for 01
Cohort descriptives file present
Section 01 has been successfully completed!
sshpass is not installed.
The results will now be archived, once that is done they will be uploaded to the server
Tarring results, log and config files
tar: .//lustre/home/sww208/GoDMC/DataSetGoDMC/scz_ab_eur/scz_ab_eurconfig: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Contact Details
s.w.wang@exeter.ac.uk
Scripts
check_upload.sh
What happened?
Since my config file is not in the current directory, or say script directory, the tar function cannot found my config file based on the line 74.
How can the bug be reproduced?
Yes.
R version
4.4.0 (April, 2024)
Python version
None
Relevant log output