Skip to content

Commit 3bcdcc0

Browse files
committed
command -v fix ubuntu
1 parent 4290cc0 commit 3bcdcc0

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

Tools/MASH/run_Mash.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/perl
22
## Pombert JF, Illinois Tech - 2019
3-
my $version = '1.1';
3+
my $version = '1.1a';
44
my $name = 'run_Mash.pl';
5-
my $updated = '2021-03-14';
5+
my $updated = '2021-12-21';
66

77
use strict; use warnings; use Getopt::Long qw(GetOptions);
88

@@ -39,7 +39,7 @@
3939
);
4040

4141
## Checking if Mash is installed
42-
my $prog = `command -v mash`;
42+
my $prog = `echo \$(command -v mash)`;
4343
chomp $prog;
4444
if ($prog eq ''){
4545
die "\nERROR: Cannot find Mash. Please install Mash in your \$PATH\n\n";

bam2fastq.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/perl
22
## Pombert Lab, IIT, 2019
33
my $name = 'bam2fastq.pl';
4-
my $version = '0.3b';
5-
my $updated = '2021-03-22';
4+
my $version = '0.3c';
5+
my $updated = '2021-12-21';
66

77
use strict; use warnings; use Getopt::Long qw(GetOptions); use File::Basename;
88

@@ -53,7 +53,7 @@
5353
);
5454

5555
## Program + option check
56-
my $samtools = `command -v samtools`;
56+
my $samtools = `echo \$(command -v samtools)`;
5757
chomp $samtools;
5858
if ($samtools eq ''){
5959
die "\nERROR: Cannot find Samtools. Please install Samtools in your path\n\n";

get_SNPs.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/perl
22
## Pombert JF, Illinois Tech - 2020
3-
my $version = '2.0';
3+
my $version = '2.0a';
44
my $name = 'get_SNPs.pl';
5-
my $updated = '2021-03-16';
5+
my $updated = '2021-12-21';
66

77
use strict; use warnings; use File::Basename; use Getopt::Long qw(GetOptions);
88

@@ -414,7 +414,7 @@
414414
# sub to check if programs are installed
415415
sub chkinstall{
416416
my $exe = $_[0];
417-
my $prog = `command -v $exe`;
417+
my $prog = `echo \$(command -v $exe)`;
418418
chomp $prog;
419419
if ($prog eq ''){die "\nERROR: Cannot find $exe. Please install $exe in your \$PATH\n\n";}
420420
}

0 commit comments

Comments
 (0)