Just a small bug fix for the pvecm script which did not verify
the argument existence during the $ARGV[0] check (when argument not used).
Script run error -> Use of uninitialized value $ARGV[0] in
string ne at /usr/bin/pvecm line 26.
Signed-off-by: Alen Grizonic <a.grizonic@proxmox.com>
my ($local_ip_address, $nodename);
-if ($ARGV[0] ne 'printmanpod' && $ARGV[0] ne 'verifyapi') {
+if (defined($ARGV[0]) && $ARGV[0] ne 'printmanpod' && $ARGV[0] ne 'verifyapi') {
die "please run as root\n" if $> != 0;
$nodename = PVE::INotify::nodename();