Skip to content

Commit 76a99af

Browse files
committed
fixed syntax bash
1 parent 5a2b13d commit 76a99af

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/extract_feature_table.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ file_type="${3:-tsv}" # tsv, biom, or fasta
88
tmp_dir_name="${4:-tmp_unzip}"
99
unzip -joq $in_file -d $tmp_dir_name
1010

11-
if [file_type = tsv]; then
11+
if [file_type = "tsv"]; then
1212
biom convert --to-tsv -i $tmp_dir_name/feature-table.biom -o $out_file
1313
sed -i '1d;2s/^#//' $out_file
1414
rm -rf $tmp_dir_name
15-
elif [file_type = biom]; then
15+
elif [file_type = "biom"]; then
1616
cp $tmp_dir_name/feature-table.biom $out_file
1717
rm -rf $tmp_dir_name
18-
elif [file_type = fasta]; then
18+
elif [file_type = "fasta"]; then
1919
cp $tmp_dir_name/dna-sequences.fasta $out_file
2020
rm -rf $tmp_dir_name
2121
else

0 commit comments

Comments
 (0)