die if abs_path failed
This commit is contained in:
parent
e4a7336fb9
commit
4f293ebf0d
1 changed files with 5 additions and 1 deletions
|
@ -946,7 +946,11 @@ sub main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($options->{target} ne '-') {
|
if ($options->{target} ne '-') {
|
||||||
$options->{target} = abs_path($options->{target});
|
my $abs_path = abs_path($options->{target});
|
||||||
|
if (!defined $abs_path) {
|
||||||
|
die "unable to get absolute path of target directory $options->{target}"
|
||||||
|
}
|
||||||
|
$options->{target} = $abs_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($options->{target} eq '/') {
|
if ($options->{target} eq '/') {
|
||||||
|
|
Loading…
Reference in a new issue