Skip to content

Commit

Permalink
Apply all auto-fixes from shellcheck v0.9.0 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwiltsie authored Apr 17, 2024
1 parent 25412d9 commit 219eb43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modify_reference_path.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
refpath_default=$1
refpath_modified=$2

cat ${refpath_default} | \
cat "${refpath_default}" | \

Check warning on line 6 in modify_reference_path.sh

View workflow job for this annotation

GitHub Actions / CICD-base

Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead. [SC2002]
sed 's|IMPUTEINFOFILE = \".*|IMPUTEINFOFILE = \"/opt/battenberg_reference/impute_info.txt\"|' | \
sed 's|G1000PREFIX = \".*|G1000PREFIX = \"/opt/battenberg_reference/1000_genomes_loci/1000_genomes_allele_index_chr\"|' | \
sed 's|G1000PREFIX_AC = \".*|G1000PREFIX_AC = \"/opt/battenberg_reference/1000_genomes_loci/1000_genomes_loci_chr\"|' | \
sed 's|GCCORRECTPREFIX = \".*|GCCORRECTPREFIX = \"/opt/battenberg_reference/1000_genomes_gcContent/1000_genomes_GC_corr_chr\"|' | \
sed 's|PROBLEMLOCI = \".*|PROBLEMLOCI = \"/opt/battenberg_reference/battenberg_problem_loci/probloci.txt.gz\"|' | \
sed 's|REPLICCORRECTPREFIX = \".*|REPLICCORRECTPREFIX = \"/opt/battenberg_reference/battenberg_wgs_replication_timing_correction_1000_genomes/1000_genomes_replication_timing_chr\"|' > ${refpath_modified}
sed 's|REPLICCORRECTPREFIX = \".*|REPLICCORRECTPREFIX = \"/opt/battenberg_reference/battenberg_wgs_replication_timing_correction_1000_genomes/1000_genomes_replication_timing_chr\"|' > "${refpath_modified}"

0 comments on commit 219eb43

Please sign in to comment.