Improve bs_mirrorfull help text

This commit is contained in:
Imobach González Sosa 2021-07-20 16:17:00 +01:00
parent 168225667b
commit 50f98358ec
No known key found for this signature in database
GPG Key ID: 7CBDCEBF188D3F34

View File

@ -32,7 +32,12 @@ while (@ARGV) {
shift @ARGV; shift @ARGV;
} }
die("uasge: bs_mirrorfull url dir\n") unless @ARGV == 2; if (@ARGV != 2) {
my $message = "Usage: $0 url dir
Example: $0 https://api.opensuse.org/public/build/YaST:Head/openSUSE_Tumbleweed/x86_64 my-mirror\n";
die($message);
}
my ($url, $dir) = @ARGV; my ($url, $dir) = @ARGV;
$url =~ s/\/$//; $url =~ s/\/$//;