Skip to content

Commit

Permalink
start-dhash: Don't die if bad directories in $PATH.
Browse files Browse the repository at this point in the history
Noted by Alex Tumanov <[email protected]>.
  • Loading branch information
sit committed Jan 27, 2008
1 parent e651c35 commit 9707fae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lsd/start-dhash
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ for my $rawbindir ($userbindir, ".", split(/:/, $ENV{PATH})) {
use File::Spec;
$bindir = File::Spec->rel2abs ($bindir);
}
if (! -d $bindir) {
die "$bindir: $!\n";
}
next unless -d $bindir;
if (-x "$bindir/bin/lsd") {
# e.g. bindir=/usr
$bindir = "$bindir/bin";
Expand Down

0 comments on commit 9707fae

Please sign in to comment.