2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Merge pull request #4773 from gurevichmark/openbmc_rflash_dash_in_filename

Handle update files with - in the path
This commit is contained in:
Victor Hu 2018-02-04 13:02:26 -05:00 committed by GitHub
commit 44938a324a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1863,23 +1863,23 @@ sub parse_command_status {
my $nohost_reboot = 0;
foreach $subcommand (@$subcommands) {
if ($subcommand =~ /-c|--check/) {
if ($subcommand =~ /^-c|^--check/) {
$check_version = 1;
} elsif ($subcommand =~ /-l|--list/) {
} elsif ($subcommand =~ /^-l|^--list/) {
$list = 1;
} elsif ($subcommand =~ /--delete/) {
} elsif ($subcommand =~ /^--delete/) {
$delete = 1;
} elsif ($subcommand =~ /-u|--upload/) {
} elsif ($subcommand =~ /^-u|^--upload/) {
$upload = 1;
} elsif ($subcommand =~ /-a|--activate/) {
} elsif ($subcommand =~ /^-a|^--activate/) {
$activate = 1;
} elsif ($subcommand =~ /-d/) {
} elsif ($subcommand =~ /^-d/) {
my $check = unsupported($callback); if (ref($check) eq "ARRAY") {
xCAT::SvrUtils::sendmsg($check, $callback);
return 1;
}
$streamline = 1;
} elsif ($subcommand =~ /--no-host-reboot/) {
} elsif ($subcommand =~ /^--no-host-reboot/) {
$nohost_reboot = 1;
} else {
$update_file = $subcommand;