From 40a9e2bfb716a9ee327d9d89d0f7ccdedf10e330 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 26 Jan 2012 13:03:09 +0100 Subject: [PATCH] avoid warning --- bin/pvesh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pvesh b/bin/pvesh index e5cfc4ad..907fbec4 100755 --- a/bin/pvesh +++ b/bin/pvesh @@ -39,7 +39,8 @@ sub print_usage { my $disable_proxy = 0; my $cmd = shift; -if ($cmd eq '--noproxy') { + +if ($cmd && $cmd eq '--noproxy') { $cmd = shift; $disable_proxy = 1; }