fix error message to specify the right command

This commit is contained in:
Johannes 'josch' Schauer 2020-08-18 09:36:27 +02:00
parent 501e29fdeb
commit 23fb2055e4
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -2681,7 +2681,7 @@ sub hookhelper {
('copy-in', 'tar-in', 'upload', 'sync-in')
) {
if (scalar @ARGV < 9) {
error "copy-in and tar-in need at least one path on the"
error "$command needs at least one path on the"
. " outside and the output path inside the chroot";
}
my $outpath = $ARGV[-1];
@ -2825,7 +2825,7 @@ sub hookhelper {
('copy-out', 'tar-out', 'download', 'sync-out')
) {
if (scalar @ARGV < 9) {
error "copy-out needs at least one path inside the chroot and"
error "$command needs at least one path inside the chroot and"
. " the output path on the outside";
}
my $outpath = $ARGV[-1];