die if abs_path failed

This commit is contained in:
Johannes 'josch' Schauer 2018-09-18 16:55:25 +02:00
parent e4a7336fb9
commit 4f293ebf0d
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -946,7 +946,11 @@ sub main() {
}
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 '/') {